Don't match every Jira issue found in PR description
See original GitHub issue(continuing from https://github.com/atlassian/github-for-jira/issues/119#issuecomment-1010360037)
Recently you released a feature where a Jira issue ID like TEST-12
can be included in the description of a PR and automatically linked to the issue.
This is great, but it’s common to refer to multiple tickets within the description of a PR, and the PR itself only be associated with one Jira ticket.
Personally, I would only expect a PR to be linked to a Jira issue if it matched something like fixes [TEST-12]
or closes [TEST-12]
. A special keyword would ideally be required before the issue ID, and the issue ID be “linked” i.e. wrapped with [
and ]
.
Any chances you could refine this feature to provide more control over this linking?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:21
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Solved: In Jira, when there is a github pull request somet...
Solved: we use smart commits to tag the commit with the jira issue key. ... My goal is to have JIRA correctly identify...
Read more >No jira issue linked to pull request - Atlassian Community
The link states the following options for a P/R: Include a commit in the pull request that has the issue key in the...
Read more >Reference issues in your development work | Jira Software ...
To reference Jira issues while committing, building, and deploying code with Bitbucket, GitHub, or other supported developer tools: Find the issue key for ......
Read more >how to mention a JIRA issue in the description or comment of ...
I found another discussion that mentioned several ways to mention one issue ... name that happens to match a Jira Ticket name so...
Read more >What links a JIRA issue to Bitbucket commits/PRs
JIRA issues are linked when you mention the JIRA key in Bitbucket, either in the branch name, as part of the description or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would it be possible to enable customers to enable/disable each type of automatic linking? We’re also experiencing tickets resolving/closing unexpectedly due to their mention in a PR body or linking in a review. It seems like enabling granular control of the linking capability would be a simple way to satisfy most customer needs.
It’s a very common use case to include an “out of scope” section in a Pull Request description to indicate tickets that were not fixed in the PR.
This new functionality is causing out-of-scope tickets to be linked to PRs and then automatically moved to “done” based on our automations when the PR merges.
It would be very nice to be able to toggle off this functionality or set an explicit pattern that picks up only certain tickets linked in a Pull Request description.