Linking pull requests to issues
Linking pull requests to issues allows you to group work by issues. This article describes the ways Swarmia can detect which issue a pull request is related to.
Last updated
Was this helpful?
Linking pull requests to issues allows you to group work by issues. This article describes the ways Swarmia can detect which issue a pull request is related to.
Last updated
Was this helpful?
Linking pull requests to issues enables Swarmia to give you deeper insights into your work. Otherwise, we can't know what coding activity happened in an issue, meaning that we can only show you data from your issue tracker, giving a limited view to what actually happened.
A high linking rate is essential for making these features (and more) work well:
Investment balance
Software capitalization
Work log by issue
Initiatives
If you use Jira or Linear with their respective plugins that label PRs to link them to their issue, we’ll leverage that information. In addition, Swarmia can automatically detect Issue links from PRs in any of the following ways:
Mention the issue key in the Pull Request title (e.g. Foobar [CLOUD-123])
Mention the issue key at the beginning of the Pull Request description (e.g. CLOUD-123 description description description)
Add the issue key URL (e.g.) in the Pull Request description.
Start the Branch name in GitHub with the issue key (e.g. CLOUD-123-foo) or use it after a slash (e.g. myname/bug/CLOUD-123-foo)
Swarmia can automatically suggest you relevant issues for a pull request based on the pull request and issue metadata. When a developer merges a pull request, for which we could not automatically determine the issue link, the Swarmia Slack bot will send them a message with suggested issue links:
You can also manually search for the right issue, or link the pull request to an investment category if no relevant issue exists.
For these notifications to be enabled, these conditions need to be met:
The author of the pull request must have Personal notifications enabled
It's also possible to manually link pull requests to issues from the Swarmia UI. Open the pull request popup from any view by clicking on a pull request, and you can change the issue and investment category that it is linked to:
The team that the author belongs to must have adopted the "Link pull requests to issues"