How to see Jira issues next to their GitHub pull requests
Maksim Norkin (opens in a new tab)Product
· 8 min read
Link GitHub to Jira, find issues by pull request with JQL, see where the Development panel stops, and put each issue beside its pull request in one sheet.
Issues
Pull requests
One sheet, a row per issue
Jira's GitHub integration shows the pull requests on each issue, one issue at a time. It doesn't give you a list of your issues with each one's pull request beside it. This guide sets up the integration and shows where Jira puts pull requests, how to search for issues by their pull requests, and how to build the side-by-side list yourself in a spreadsheet when the panel isn't enough. Jira now calls issues work items; this guide says issues, as most people still do.
The link comes from Atlassian's GitHub for Jira app (newer Atlassian pages call it GitHub for Atlassian). A Jira site admin connects it to your GitHub organization. After that, Jira links a pull request to an issue by its key, so APP-15 has to appear in one of three places:
- The pull request title, such as
APP-15 Fix dates. Atlassian's help for the Development page says team members must put keys in pull request titles, so this is the one to make a habit. - The branch name, such as
APP-15-fix-dates. - A commit message. A deployment links only through a commit message that holds the key.
In a GitHub comment, put the key in square brackets, as in [APP-15]. To see any of it in Jira, you need the View Development Tools permission in the space, and access to the repository the pull request is in.
Details
- 1Put the key in the titleOr in the branch name or a commit message
- 2Read the panelA count, and the state of the pull requests
- 3Open the dialogEverything linked, for one issue at a time
Open an issue and look for the Development field in its details. It counts the linked branches, commits and pull requests (and builds and deployments, where those are connected). Next to the pull requests is one state for all of them: OPEN if any is open, MERGED if none is open and at least one is merged, DECLINED if none is open or merged and at least one was declined. Select the count, such as 1 pull request, and a dialog lists everything linked to that issue, with a link to each pull request on GitHub.
Jira shows pull requests in two more places. A card on a board carries a small icon when its issue has pull requests, branches or commits, and hovering over it shows the details. And the space’s Development page has a Pull requests tab that lists the pull requests linked to its issues in the last 30 days.
The issue’s panel
One issue at a time
A board card
An icon; hover for details
The Development page
The last 30 days
Atlassian's GitHub guide says you can search a space in JQL for issues with commits, pull requests, builds or deployments. The development fields count what's linked, so you compare them with a number. In Filters › Search work items, switch to JQL and try:
project = APP AND development[pullrequests].all > 0finds the issues with an open or merged pull request.project = APP AND development[pullrequests].open > 0finds the issues that still have one open.project = APP AND status = Done AND development[pullrequests].open > 0finds the Done issues that still have a pull request open.project = APP AND sprint in openSprints() AND development[pullrequests].all = 0finds the sprint’s issues with no open or merged pull request yet.
Replace APP with your project's key. Atlassian's field reference also lists .merged and .status, but its examples are written for Bitbucket, so check what they find on your site before you rely on them. Save a search you’ll run again as a filter.
Each of those places answers a narrower question than "which pull request goes with each of my issues?"
| What you want to see | What Jira gives you |
|---|---|
| Each issue’s pull request, for many issues | One issue’s dialog at a time |
| Which pull request it is, who wrote it, where its review stands | A search that finds the issues with one open |
| Pull requests from more than a month ago | The issue’s own panel; the Development page keeps 30 days |
| A pull request without the key | Nothing: it never reaches Jira |
| Every commit on a long-running issue | The first 100 commits |
Two more things to know: once something is linked to an issue, the link can't be removed, and the dialog may show the same item twice.
GitHub can make every key a link back to Jira. In the repository, open Settings › Autolink references (under Integrations) and choose Add autolink reference. Set the prefix to APP-, the target URL to https://your-site.atlassian.net/browse/APP-<num>, and pick Alphanumeric or Numeric for the identifier. From then on, APP-15 in a pull request's title, description or commit message is a link to the issue. It takes a repository admin. The link opens the issue; it doesn't show the issue's status in GitHub.
GitHub search then gives you the other half of the list: the pull requests, each title starting with its issue key. A few searches worth saving as bookmarks:
is:pr is:open repo:your-org/applists the repository’s open pull requests, each with its key.is:pr APP-15 in:titlefinds the pull requests for one issue.is:pr author:@me is:openlists your own open pull requests.is:pr head:APP-15finds the pull requests from a branch whose name starts with the key.
Tab “PRs”
Tab “Issues”
When you need the whole list at once (for a sprint review, a release check or a stand-up), build it from the two searches above.
- Export the issues. Run the Jira search with Key, Summary and Status as columns, then More actions › Export › CSV (current fields). Paste it into a tab named Issues, keys in column A. Our guide to exporting Jira to Excel covers the export, and the 1,000-issue limit.
- Copy the pull requests. Select the results of your GitHub search, paste them into a tab named PRs, and tidy them into a title in column A and a state (Open, Merged, Closed) in column B.
- Take the key out of each title. In C2 on the PRs tab, enter
=REGEXEXTRACT(A2, "[A-Z][A-Z0-9]+-[0-9]+")and fill it down. It works in Google Sheets and in Excel for Microsoft 365. A title with no key shows an error: that pull request isn’t linked to any issue. - Look each issue up. In a new column on the Issues tab, enter
=XLOOKUP(A2, PRs!C:C, PRs!A:A, "none")and fill it down, then once more with PRs!B:B for the state. Every issue now has its pull request, or none, in its row.
An issue with two pull requests shows only the first. To list them all in one cell, use =TEXTJOIN(", ", TRUE, FILTER(PRs!A:A, PRs!C:C=A2)) instead. Sort or filter the sheet by state, and the questions the panel couldn’t answer take a glance: which Done issues still have an open pull request, which In review issues have none.
The catch is that the sheet is a copy. Next week, you export and paste both halves again, so keep the two formulas in their own columns and paste the new rows over the old ones.
Tabless is a browser extension that builds what you ask for from the sites you allow; nothing is typed or submitted without your OK. It isn't open yet.
A sheet of issues beside their pull requests is the kind of view we’re building it for. You’d ask in plain words for "this sprint’s issues, each with its pull request and that pull request’s state", and it’s designed to read your issue tracker and your repository through the session your browser already has, asking before it reads each site, and to build one view with a row per issue that you can refresh, or download as CSV or XLSX. The same goes for a failing build beside the issue it breaks, with a button on each row that posts the error to the issue when you click it. What it reads to build a view goes to Tabless’s server and an AI provider. You sign in to Tabless with a Wix account; there are no API keys or passwords for the sites.
Check that the issue key is in its title, its branch name or a commit message, written as Jira shows it (APP-15), and that the repository is connected to Jira. You also need the View Development Tools permission in the space and access to the repository, since Jira checks permissions in the linked tool before it shows anything.
Yes. In JQL, development[pullrequests].open > 0 finds the issues with at least one open pull request, and development[pullrequests].all > 0 finds the issues with an open or merged one. Add your project and status to narrow it down.
Not with the setup in this guide. GitHub's autolinks turn a key such as APP-15 into a link to the issue, and the status is one click away, in Jira. For both side by side, build the sheet above.
Its Pull requests tab lists those linked in the last 30 days, and older ones updated in that time. For anything older, open the issue: its Development panel still holds the link.
Not yet. Tabless isn't open, and issues beside their pull requests in one view is the kind of job we're building it for. Join the waitlist, and we'll let you know when you can try Tabless.