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:

 

select 
     i.key, c.created, c.toValue
from 
     issues i
left join
     issuechanges c on c.issueid = i.id
where 
     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 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 yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

346 views 4 9
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