how to get Issues with full changelog using Jira REST API
- User
how to get Issues with full changelog using Jira REST API
- Assistant
To get issues with full changelog using Jira REST API, you can follow these steps:
- Use the Jira REST API query endpoint to search for issues with a specified JQL query string. For example:
GET /rest/api/latest/search?jql=project=MyProject+AND+status=DoneThis will return a list of issues that match the query.
- For each issue, use the issue's key and the Jira REST API issue endpoint to retrieve the issue's full details, including the changelog. For example:
GET /rest/api/latest/issue/MyProject-1234This will return the issue details, including the changelog.
-
Parse the changelog to extract the information you need, such as the user who made a change, the date of the change, and the field that was changed.
-
Process the information as needed.
Note that you may need to authenticate to use the Jira REST API, and you may need appropriate permissions to access the issues and their changelogs.
- User
write code using Power Query
- Assistant
Here is an example of how to write code in Power Query to retrieve issues with a changelog from Jira:
-
Open Microsoft Excel and navigate to the Data tab on the ribbon.
-
Click on the From Other Sources button and select From Web from the drop-down menu.
-
In the From Web dialog box, enter the Jira REST API URL for the search query. For example:
https://yourjiraserver.com/rest/api/latest/search?jql=project=MyProject+AND+status=DoneClick OK.
-
In the Navigator dialog box, select the relevant table and click Edit.
-
In the Power Query Editor window, click on the Add Column tab on the ribbon and select Custom Column.
-
In the Custom Column dialog box, enter the following formula to retrieve the issue details and changelog:
Json.Document(Web.Contents("https://yourjiraserver.com/rest/api/latest/issue/" & [key] & "?expand=changelog"))[fields][customfield_10000][value] -