jql to get activity on an issue

I'm trying to figure out this: given the issue key how can you get all the activity on that specific issue using the API.  So far everything I've tried will only give me the current state of the issue . 

 

2 answers

There is nothing in the JQL to get the activity of an issue. You will need to get the issue history either via the JIRA REST API (create your own), an add-on (e.g. JIRACLI) or directly from the JIRA DB.

So if you can't use JQL how do you get the activity from the API????

You can get the full history of any issue with the SQL for JIRA plugin...

select * 
from issues i inner join issuechanges c on i.id=c.issueid 
where i.key='<your issue key>'

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,278 views 21 17
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you