Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i need help in accessing activity data inside a jira ticket, i want to access it using rest api

Suryansh Tiwari December 16, 2022

I have a requirement to get the activity data inside a jira SD ticket but i am unable to find a rest api using which i can access the data, i need help in finding the rest api through which i can access activity data of a jira sd ticket

2 answers

0 votes
Florian Bonniec
Community Champion
December 18, 2022

Hi @Suryansh Tiwari 

You can use the get issue endpoint with expand parameter, this will allow you to expand, changelog.

https://docs.atlassian.com/software/jira/docs/api/REST/9.3.2/#api/2/issue-getIssue

Something like

{jira_baseURL}/rest/api/2/issue/{issueIdOrKey}?expand=changelog

Regards

Suryansh Tiwari December 18, 2022

Hi @Florian Bonniec thanks for the reply.

I checked the change log also but it does not gives me data which comes in the activity tag of a JIRA ticket. Maybe i was unable to phrase my requirement correctly.

When i did the inspect element, the activity tab calls

Request URL:

https://{jira_base_url}/browse/{issue_key}?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab&_=1671250392710
i want to access this data using Jira Rest API.
0 votes
Fabio Racobaldo _Catworkx_
Community Champion
December 17, 2022

Hi @Suryansh Tiwari ,

welcome to the Atlassian community!

You can retrieve issue history through the following rest api https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-changelog-get

Hope this helps,

Fabio

Suryansh Tiwari December 18, 2022

Hi @Fabio Racobaldo _Catworkx_  thanks for the reply.

I checked the change log also but it does not gives me data which comes in the activity tag of a JIRA ticket. Maybe i was unable to phrase my requirement correctly.

When i did the inspect element, the activity tab calls

Request URL:

https://{jira_base_url}/browse/{issue_key}?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab&_=1671250392710
i want to access this data using Jira Rest API.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events