In my last article, I shared an easy way to find what you’re looking for by changing parameters in URLs in your browser’s address bar. This time, let’s explore accessing Jira information using REST API URLs.
Briefly, REST stands for representational state transfer and API means application programming interface. A REST (sometimes called RESTful) API allows multiple systems to exchange information or share data. For example, third-party apps from the Atlassian Marketplace use Atlassian’s REST APIs to connect to Jira to provide additional features and functionality. Companies like Atlassian make APIs available so others can leverage, integrate with, and connect to their systems. Atlassian offers APIs for their different products (e.g., Jira Software, Jira Service Management, and Confluence) and different deployment types (e.g., Cloud and Data Center). More information is available in the developer documentation at developer.atlassian.com.
Even if you’re not developing your own custom features and building apps you can still leverage the REST APIs to access Jira data. You don’t need any special programming skills to use the information below. Just make sure you’re logged in to Jira when pasting URLs in your browser’s address bar.
And don’t worry, the REST API respects all permission settings. This trick does not expose information users can’t already access in Jira.
This screenshot shows a Jira issue in a Service Management project with the key SERVICE-14. Use the URL format below to get issue configuration information, like custom field names.
Format: | your-jira-URL/rest/api/latest/issue/ISSUE-KEY?expand=names |
Example: | your-jira-URL/rest/api/latest/issue/SERVICE-14?expand=names |
The second screenshot shows the information returned when embedding SERVICE-14 in the sample URL. For example, a custom field named “Location” is shown and its unique ID is 10198. I can use that ID in an automation rule, in a JQL query, in a script, and more.
Here are some example URLs to try in your browser’s address bar. Simply prepend your Jira URL and change the bolded parameters.
Cloud
Format: | /rest/api/latest/user?accountId=ACCOUNT-ID |
Example: | /rest/api/latest/user?accountId=6e6feca20a6a810c48 |
Tip: In Cloud, usernames are formatted as long strings of letters and numbers. They are set by Atlassian. There’s no way to change them and they are used across Cloud sites and products.
Server and Data Center
Format: | /rest/api/latest/user?username=USERNAME |
Example: | /rest/api/latest/user?username=rwright |
Tip: In Server and Data Center, username format are customizable. They are generally in the format “first.last”, “flast”, or sometimes they are an email address.
Format: | /rest/api/latest/issue/ISSUE-KEY?expand=names |
Example: | /rest/api/latest/issue/SERVICE-14?expand=names |
Format: | /rest/api/latest/project/PROJECT-ID |
Example: | /rest/api/latest/project/10056 |
Tip: Use “/rest/api/latest/project” to get a list of all projects. Use this format to get lists of other objects too, like dashboards or resolutions, for example.
Format: | /rest/agile/latest/board/BOARD-ID |
Example: | /rest/agile/latest/board/17 |
Format: | /rest/api/latest/dashboard/DASHBOARD-ID |
Example: | /rest/api/latest/dashboard/10000 TIP: ID 10000 is the default system dashboard |
Format: | /rest/api/latest/filter/FILTER-ID |
Example: | /rest/api/latest/filter/10057 |
Format: | /rest/api/latest/search?jql=text%20~%20″KEYWORD“ |
Example: | /rest/api/latest/search?jql=text%20~%20″website%20error“ |
Tips:
Format: | /rest/api/latest/search?jql=JQL-QUERY |
Example: For the JQL query “project = dev and status = done” | /rest/api/latest/search?jql=project=dev%20and%20status=done |
Format: | /rest/api/latest/status |
For the full list of examples and capabilities, see:
Have additional examples to share? Post them below!
Rachel Wright
Author, Jira Strategy Admin Workbook
Industry Templates, LLC
Traveling the USA in an RV
46 accepted answers
2 comments