Update JIRA settings to include Web URL and JIRA API URL
Description
Update the JIRA project integration settings to be:
- Web URL: (this will be used for URL Generation)
- JIRA API URL: (this will be the url that Gitlab uses to interact with the JIRA REST API)
- Project Key: Unchanged functionality
- Username: Unchanged functionality
- Change Password: Unchanged functionality
- JIRA Issue Transition: Unchanged functionality
Original description
We recently upgraded to 8.14.5-ee from 8.13.x-ee and in doing so lost some of the JIRA integration functionality that we previously utilized.JIRA Options pre-upgrade:
- Description
- Project URL: https://jira.host/issues/?jql=project=
- Issues URL: https://jira.host/browse/:id
- New Issue URL: https://jira.host/secure/CreateIssue.jspa
- API URL: https://jira.host:8446/rest/api/2
- Username
- Password
- JIRA Issue Transition
JIRA Options post-upgrade:
- URL: https://jira.host:8446
- Project key: PROJECT
- Username
- Change Password
- Jira issue transition
The use case is that our API calls utilize a non-standard port due to our JIRA instance living in a VM environment that where :non-standard-port is PAT'd to 443. We were able to obtain the intended functionality by setting the API URL to jira.host:port
while the other URLs were set to jira.host
and were able to resolve properly due to host-headers being in place.
You'll see in the Screenshot below that the URL shows jira.host:8446
. This does not resolve in-browser and is generated due to the URL in the integration being set to jira.host:8446. Currently we're choosing to maintain API functionality (so commits and MRs are added in JIRA), instead of having URLs rendering properly in Gitlab.
Screenshot
Proposal
Add API URL or an API Port field to the JIRA integration for non-standard port usage.