Linking Pull Requests and Tickets
Logilica automatically links pull requests to planning tickets (e.g., Jira issues, GitHub Issues, Azure DevOps work items) by scanning for ticket keys in your PR metadata. This linking is what powers the "Linked Task", "Ticket Without PR", and "Unlinked Pull Request" categories across dashboards.
How Linking Works
When Logilica imports a pull request, it scans four locations for ticket keys in the format PROJECT-123 (one or more letters, a hyphen, then one or more digits):
Branch name
feature/LPAV-1056-add-login
Extracted between separators (-, _)
PR title
[LPAV-1056] Fix authentication bug
Word boundary matching
PR description / body
Closes LPAV-1056, resolves LPAV-731
Word boundary matching
Commit messages
LPAV-1056: update error handling
Word boundary matching
All extracted keys are normalised to uppercase and deduplicated, so lpav-1056 and LPAV-1056 are treated as the same ticket.
Multiple Tickets
A single PR can link to multiple tickets. For example:
Branch:
lpav-1056-lpav-1057-do-stuff→ links toLPAV-1056andLPAV-1057Title:
[LPAV-1056][LPAV-731] Do stuff→ links toLPAV-1056andLPAV-731Body:
Closes MATT-3, closes MATT-56→ links toMATT-3andMATT-56
Tickets found across all four locations are combined and deduplicated.
Supported Connectors
This linking logic is shared across all code connectors:
GitHub
GitLab
Bitbucket
Azure DevOps
The same extraction rules apply regardless of which code hosting platform you use.
Why Linking Matters
Linked PRs and tickets are the foundation of several Logilica metrics and views:
Linked Task
A ticket with at least one associated PR
Activity dashboards, Team Pulse
Ticket Without PR
A ticket that has no associated PR
Highlights planning items with no code activity
Unlinked Pull Request
A PR that doesn't match any known ticket
Highlights code work happening outside the planning process
High numbers of unlinked PRs or tickets without PRs may indicate that the team isn't following consistent linking practices, which reduces the accuracy of cross-functional metrics like lead time and delivery tracking.
Best Practices
Include Ticket Keys in PR Titles
The most reliable and visible approach is to include the ticket key in the PR title:
or
This ensures the link is created regardless of branch naming conventions or commit message practices.
Use Consistent Branch Naming
If your team uses branch naming conventions, include the ticket key:
Reference Tickets in PR Descriptions
For PRs that address multiple tickets, list them in the description:
Avoid Common Pitfalls
Ticket key must match the format
LETTERS-DIGITS— keys like#123orGH-issue-45will not be detectedThe ticket must exist in a connected planning tool — if the project key doesn't match any imported planning project, the link won't be established in dashboards
Keys are case-insensitive —
lpav-1056,LPAV-1056, andLpav-1056all resolve to the same ticketDon't rely on a single location — including the key in both the branch name and PR title provides redundancy
Checking Your Linking Coverage
To assess how well your team is linking PRs and tickets:
Navigate to the Code Activities / Risks dashboard and filter for "Unlinked Pull Requests"
Check the Activity views for the ratio of Linked Tasks vs. Tickets Without PR and Unlinked Pull Requests
A high proportion of unlinked items suggests the team needs to adopt more consistent ticket referencing
If you notice a significant number of unlinked PRs, consider adding a PR template to your repositories that prompts authors to include the ticket key.
Last updated