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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

292 views 5 0
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