This article provides a number of methods to identify Jira issue IDs in the Jira Cloud.
CSV
Exporting all issues to CSV exposes the Jira issue ID:
- Navigate to Filters > Advanced Issue Search
- Using either Basic Search or JQL search for the issue(s) that you are looking for the ID of
- Click Export at the top of the screen on the right side
- Select Export Excel CSV (all fields)
- The issue ID will be contained in the issue id column in the generated CSV file.
![Product Support Knowledge Base > [Xray Cloud] How to get the IssueID to use on Rest API requests? > csv.png](/download/attachments/111160133/csv.png?version=1&modificationDate=1679930456234&api=v2)
REST API
In this method, it is possible to check only one Jira Issue Id at a time:
- Type the URL in a new tab of your browser: https://your-site.atlassian.net/rest/api/3/issue/{idOrKey}
- Replace your-site.atlassian.net with your Cloud URL and {idOrKey} with the issue key you want to get the ID, ie ABC-123
- Press enter
- This will load the issue data in JSON format within your browser, the Issue ID being listed under the id element
![Product Support Knowledge Base > [Xray Cloud] How to get the IssueID to use on Rest API requests? > rest.jpg](/download/attachments/111160133/rest.jpg?version=1&modificationDate=1679930480945&api=v2)
XML
Using this method, we can export a single issue via the Issue View to XML to identify the issue ID:
- Navigate to the issue that you are looking for the ID of, ie ABC-123, within Jira
- Click ⋯ in the top right corner and select Export XML
- The Issue ID will be stored inside the <key> XML element
![Product Support Knowledge Base > [Xray Cloud] How to get the IssueID to use on Rest API requests? > xml.png](/download/attachments/111160133/xml.png?version=1&modificationDate=1679930501220&api=v2)
Developers Console
Using this method, it is possible to check the issue id:
- Go to console, Navigate to Network
- Search for IssueId in the filter.
- All the Issue IDs are displayed.
![Product Support Knowledge Base > [Xray Cloud] How to get the IssueID to use on Rest API requests? > chrome.jpg](/download/attachments/111160133/chrome.jpg?version=1&modificationDate=1679930513556&api=v2)
Using GraphQL
Using the graphQL query, It is possible to retrieve the testIssueId.
Endpoint: https://xray.cloud.getxray.app/api/v2/graphql
Query:
{
getTests(jql: "Issue = 'FIR-19'",limit:1){
results {
issueId
}
}
}
|
![Product Support Knowledge Base > [Xray Cloud] How to get the IssueID to use on Rest API requests? > rest.png](/download/attachments/111160133/rest.png?version=1&modificationDate=1679930404148&api=v2)