JIRA Web URL cannot have concrete project ID
Summary
There is a way to integrate Gitlab with Jira. If you define Web URL: https://jira.example.com
then link in the left drawer will redirect you to the root of Jira, what isn't useful. But if you define concrete URL to the project there will be an issue with links like PROJECT-1
pointed to Jira in Gitlab Merge Request, Commits and Issues body.
Steps to reproduce
I've defined Web URL: https://jira.example.com/browse/TEST
to tightly link my Gitlab project with Jira project and not redirect user to the Jira main page.
After then I've defined JIRA API URL: https://jira.example.com
because Web URL
pointed not on the root of the Jira instance.
What is the current bug behavior?
If you create Merge Request in Gitlab with text Closes TEST-1
it's correctly created link in Jira's Issue TEST-1
, but in Gitlab Merge Request it will be pointed to https://jira.example.com/browse/TEST/browse/TEST-1
if Web URL not pointed on the root of the Jira instance.
What is the expected correct behavior?
Add additional optional field in Gitlab Jira Integration page to define concrete project which should be opened while clicking on the link in the left drawer menu. If this field is empty - Jira main page will be opened as it working right now.
Output of checks
This bug happens on self-hosted GitLab 10.7.1.