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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

86 views 0 6
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