Excel Power Query Jira Web API: How to Pull Issues
In this article
Yes, Excel can pull Jira data by calling Jira’s REST web API from Power Query, but it works best for read-only reporting, not for creating or changing tickets. The short path is: create a Jira API token, build a Jira REST URL, connect with Power Query using the right Authorization header, then shape and refresh the result. Menu labels vary slightly by Excel version and Jira site, so exact button names may differ.
What You'll Need
- Excel with Power Query, usually available under the Data tab.
- A Jira Cloud account or project access with permission to view issues.
- A Jira API token for your Atlassian account; do not use your Jira password.
- The base URL for your Jira site, such as your company’s atlassian.net address.
- A basic understanding of JQL, the Jira query language, such as project=ABC and status!=Done.
- A safe place to store the token, because it is a secret and should not be pasted into a shared workbook, chat message or screenshot.
Step-by-Step
- In Jira, open your Atlassian account security settings and create an API token. Copy it once and keep it private; if it leaks, revoke it and create a new one.
- Confirm your Jira base URL and API version. For Jira Cloud, the REST API is commonly versioned under /rest/api/3/, but exact endpoints and pagination can change, so check Atlassian’s current REST API documentation for your site before relying on a fixed URL.
- In Excel, open the Data tab and choose Get Data, then From Other Sources or From Web. If the exact wording differs, use the web-data option in your version.
- Enter the Jira REST URL. A practical starting pattern is the issues or search endpoint for your Jira site, with a JQL filter in the query string. Keep the filter simple at first, for example one project, then add status, assignee or date filters later.
- Add the Authorization header. Jira Cloud commonly uses Basic authentication with your Atlassian email and API token, not your password. In versions where the Web dialog exposes advanced headers, add the Basic header and enter the email:token value. If the dialog does not expose headers, open the Advanced Editor and use the web function with an explicit Authorization header.
- Choose the response you want. For Jira issues, the JSON response usually contains a list of issues with fields such as key, summary, status, assignee and dates. Select the list, then expand the fields you need rather than importing every nested value at once.
- Filter in Power Query. Remove columns you do not need, change field types, and convert dates, priorities and status labels into readable values. For example, keep key, summary, status, assignee display name, priority and updated date.
- Handle pagination. Large result sets may return only part of the data. Check whether the response includes a next-page token or offset, and either increase the page size within Jira limits or build a repeatable page loop in M if you need a full extract.
- Name the query, load it to a worksheet or keep it as a data model table, and test refresh. Refreshing should re-run the API call and update the table.
- Set refresh behavior carefully. If the workbook is shared, make sure users have their own Jira access and do not store your token in the file. Prefer refresh on demand over frequent scheduled refresh against a large project.
Common Mistakes
The most common mistake is using a Jira password instead of an API token. Another is pasting the token into a visible cell, formula, or shared file. Also avoid over-broad JQL such as returning every issue in the company; start with one project and a date window. Do not assume a JSON field is always present, because Jira can omit empty fields or change names between versions. Finally, do not rely on a single large request when the result is paginated; you may see only the first page and think the report is complete.
Tips
Use read-only queries and keep the JQL narrow. Add a clear query name such as Jira ABC Open Issues. Prefer stable fields like key, status and updated date over deep nested objects. If you need many fields, expand only the needed ones. Store the token outside the workbook when possible, or use an Excel credential manager flow where available. Keep a copy of the exact URL and JQL in the workbook notes so teammates can reproduce the pull.
Troubleshooting
If authentication fails, confirm the email and token are paired correctly, that the token was not revoked, and that the Jira site allows API access. If you get a 401 or 403, check permissions and whether the endpoint requires a different version. If the data is empty, test the same JQL in Jira’s issue search and confirm the project key, date range and status filters. If only part of the data appears, add pagination handling or narrow the query. If the refresh fails intermittently, check network access, Jira service status, and whether the site requires a browser session first. If the JSON structure changes, inspect the raw response in the Advanced Editor and re-expand only the fields that still exist.
Frequently Asked Questions
Can Power Query write to Jira?
This guide focuses on reading data. Power Query is not a reliable way to create, update or delete Jira issues; use Jira, its API or an approved integration for writes.
Should I put my Jira token in the workbook?
No. Keep it out of visible cells and shared files. Use credential management or a controlled process, and revoke the token if it is exposed.
Does Jira allow unlimited issue exports?
No. Results may be paged and limited by Jira limits and your permissions. Narrow the JQL and handle pagination rather than assuming one request returns everything.
Why does the JSON not expand automatically?
The response may be nested or require the correct web-header setup. Inspect the raw response, confirm the URL and auth header, then expand the issue list and fields step by step.
Can I refresh this on a schedule?
Yes, but only with appropriate access and governance. Refreshing repeatedly against large projects can be slow and may hit limits, so keep the query narrow and test before sharing.