Create a new issue button to prefill the correct Jira project id
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
GitLab also shows a Create new issue in Jira
button in the top right corner. The link behind this button is currently towards the generic "create new issue" page on Jira, basically the CreateIssue!default.jspa
page on a Jira instance. Because just the generic page is used, Jira will prefill the project
dropdown field with whatever Jira project you accessed last. This project
dropdown field is not prefilled with the Jira project that has been associated with the GitLab repository.
This creates some confusion: suppose a user might have been checking Jira issues within Jira of Jira project A. Then the user accesses the GitLab repository of project B and clicks on the Create new issue in Jira
button => Jira will open the create new issue
screen with Jira project A prefilled instead of project B. Customer may have hundreds of GitLab repositories and hundreds of Jira projects, so some prefilling with the correct Jira project would be handy.
The way to have a link that immediately prefills the correct Jira project is by specifying the correct PID value of the Jira project as a get variable in the link. For example: https://our-jira-server-here/issues/secure/CreateIssue!default.jspa?pid=10001
You can get Jira project id using this link https://confluence.atlassian.com/jirakb/how-to-get-project-id-from-the-jira-user-interface-827341414.html