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 .