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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

288 views 0 12
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot