curl--location-g--request PUT 'http://gitlab.example.com/v3/projects//services/jira' \
--data-urlencode'url=' \
--data-urlencode'project_key='
响应示例响应示例
{}
请求参数
Path 参数
id
integer<int32>
必需
Body 参数application/x-www-form-urlencoded
url
string
必需
The URL to the JIRA project which is being linked to this GitLab project, e.g., https://jira.example.com
project_key
string
必需
The short identifier for your JIRA project, all uppercase, e.g., PROJ
username
string
可选
The username of the user created to be used with GitLab/JIRA
password
string
可选
The password of the user created to be used with GitLab/JIRA
jira_issue_transition_id
integer<int32>
可选
The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. The ID of each state can be found inside the parenthesis of each transition name under the Transitions (id) column ([see screenshot][trans]). By default, this ID is set to 2
commit_events
string
可选
Event will be triggered when a commit is created/updated
merge_request_events
string
可选
Event will be triggered when a merge request is created/updated/merged