Update Jira integration docs for new Jira UI

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/42663

The new Jira UI doesn't show transition IDs in the admin interface.
This updates the docs to list a couple of alternative methods of
getting the required ID.
This commit is contained in:
Tom Grace 2018-02-02 09:39:41 +00:00
parent 6f40aaaca7
commit 08416f0ec7
No known key found for this signature in database
GPG key ID: 02EE9B18CAC00997
2 changed files with 10 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

View file

@ -113,7 +113,16 @@ in the table below.
| `JIRA API URL` | The base URL to the JIRA instance API. Web URL value will be used if not set. E.g., `https://jira-api.example.com`. | | `JIRA API URL` | The base URL to the JIRA instance API. Web URL value will be used if not set. E.g., `https://jira-api.example.com`. |
| `Username` | The user name created in [configuring JIRA step](#configuring-jira). | | `Username` | The user name created in [configuring JIRA step](#configuring-jira). |
| `Password` |The password of the user created in [configuring JIRA step](#configuring-jira). | | `Password` |The password of the user created in [configuring JIRA step](#configuring-jira). |
| `Transition ID` | This is the ID of a transition that moves issues to a closed state. You can find this number under JIRA workflow administration ([see screenshot](img/jira_workflow_screenshot.png)). **Closing JIRA issues via commits or Merge Requests won't work if you don't set the ID correctly.** | | `Transition ID` | This is the ID of a transition that moves issues to the desired state. **Closing JIRA issues via commits or Merge Requests won't work if you don't set the ID correctly.** |
### Getting a Transition ID
In the most recent Jira UI, you can no longer see transition IDs in the workflow administration UI. You can get the ID you need in either of the following ways:
1. Use the API, with a request like https://yourcompany.atlassian.net/rest/api/2/issue/ISSUE-123/transitions using an issue that is in the appropriate "open" state
1. By mousing over the link for the transition you want and looking for the "action" parameter in the URL
Note that the transition ID may vary between workflows (i.e. bug vs. story), even if the status you are changing to is the same.
After saving the configuration, your GitLab project will be able to interact After saving the configuration, your GitLab project will be able to interact
with all JIRA projects in your JIRA instance. with all JIRA projects in your JIRA instance.