Query issue history

Hi, is it possible to query issue history?

"changed" and "was" JQL functions don't work for custom fields, like dates. Is there a way to get to that data?

Use case:

We want to see all stories with a changed ship date. This is for Product and management, as dates can change for many reasons. If anyone else has creative ways to answer this, that'd be appreciated.

I was als trying to query for story tickets that were in previous sprints?

1 answer

The SQL for JIRA plugin supports it. Please, notice that it is capable of combining SQL and JQL:


     i.key, c.created, c.toValue
     issues i
left join
     issuechanges c on c.issueid = i.id
     i.jql = 'type = Story'
     and c.field = 'Sprint' 
     and c.fromvalue = 'Some Sprint'

In the query above, issues are filtered by using the jql = 'type = Story'. Once all the stories have been fetched, they are filtered by having a 'Sprint' type filed in the change story and having a initial Sprint value = 'Some Sprint'

It would return the issue key and the date of the change as well as the new Sprint value.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,293 views 14 20
Join discussion

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