src/main/java/org/gitlab4j/api/ServicesApi.java
public JiraService updateJiraService(Object projectIdOrPath, JiraService jira) throws GitLabApiException {
        GitLabApiForm formData = new GitLabApiForm()
                .withParam("merge_requests_events", jira.getMergeRequestsEvents())
                .withParam("commit_events", jira.getCommitEvents())
                .withParam("url", jira.getUrl(), true)
                .withParam("api_url", jira.getApiUrl())
                .withParam("project_key", jira.getProjectKey())
                .withParam("username", jira.getUsername(), true)
                .withParam("password",  jira.getPassword(), true)
                .withParam("jira_issue_transition_id", jira.getJiraIssueTransitionId());
        Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "services", "jira");
        return (response.readEntity(JiraService.class));
    }
/**
     * Updates the JIRA service settings for a project.
     *
     * PUT /projects/:id/services/jira
     * 
     * The following properties on the JiraService instance are utilized in the update of the settings:
     *
     * mergeRequestsEvents (optional) - Enable notifications for merge request events
     * commitEvents (optional) - Enable notifications for commit events
     * url (required) - The URL to the JIRA project which is being linked to this GitLab project, e.g., https://jira.example.com.
     * apiUrl (optional) - The JIRA API url if different than url
     * projectKey (optional) - The short identifier for your JIRA project, all uppercase, e.g., PROJ.
     * username (required) - The username of the user created to be used with GitLab/JIRA.
     * password (required) - The password of the user created to be used with GitLab/JIRA.
     * jiraIssueTransitionId (optional) - The ID of a transition that moves issues to a closed state.
     *
     * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
     * @param jira the JiraService instance holding the settings
     * @return a JiraService instance holding the newly updated settings
     * @throws GitLabApiException if any exception occurs
     */
Updates the JIRA service settings for a project.
PUT /projects/:id/services/jira

The following properties on the JiraService instance are utilized in the update of the settings.



@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param jira the JiraService instance holding the settings
@return a JiraService instance holding the newly updated settings
@throws GitLabApiException if any exception occurs
Updates the JIRA service settings for a project . PUT / projects / : id / services / jira The following properties on the JiraService instance are utilized in the update of the settings . @param projectIdOrPath id path of the project or a Project instance holding the project ID or path @param jira the JiraService instance holding the settings @return a JiraService instance holding the newly updated settings @throws GitLabApiException if any exception occurs
public JiraService updateJiraService(Object projectIdOrPath, JiraService jira) throws GitLabApiException {
        GitLabApiForm formData = new GitLabApiForm()
                .withParam("merge_requests_events", jira.getMergeRequestsEvents())
                .withParam("commit_events", jira.getCommitEvents())
                .withParam("url", jira.getUrl(), true)
                .withParam("api_url", jira.getApiUrl())
                .withParam("project_key", jira.getProjectKey())
                .withParam("username", jira.getUsername(), true)
                .withParam("password",  jira.getPassword(), true)
                .withParam("jira_issue_transition_id", jira.getJiraIssueTransitionId());
        Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "services", "jira");
        return (response.readEntity(JiraService.class));
    }
public JiraService updateJiraService ( Object projectIdOrPath , JiraService jira ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "merge_requests_events" , jira . getMergeRequestsEvents ( ) ) . withParam ( "commit_events" , jira . getCommitEvents ( ) ) . withParam ( "url" , jira . getUrl ( ) , true ) . withParam ( "api_url" , jira . getApiUrl ( ) ) . withParam ( "project_key" , jira . getProjectKey ( ) ) . withParam ( "username" , jira . getUsername ( ) , true ) . withParam ( "password" , jira . getPassword ( ) , true ) . withParam ( "jira_issue_transition_id" , jira . getJiraIssueTransitionId ( ) ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "services" , "jira" ) ; return ( response . readEntity ( JiraService . class ) ) ; }
Updates the JIRA service settings for a project.
Updates the JIRA service settings for a project .