Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Quick question: Can we get past data from a custom field?

Radia Dev
Contributor
December 1, 2025

Dear Community,

It is great to connect with you all again!

I am currently working on retrieving historical data and require assistance with a specific JQL query challenge.

The Goal: Historical Priority Tracking

I need to generate a list of all issues that were ever classified as P1 or P2 at any point during their lifecycle, even if their priority was subsequently decreased and the issue was ultimately resolved.

The Challenge

Since standard JQL queries only filter based on the current priority, they do not capture these historical changes.

Has anyone utilized a specific method, advanced JQL function (e.g., from an app like ScriptRunner), or a technique to successfully query the Issue History for past priority values?

Any guidance on how to extract this historical data for tickets that "had priority = P1 or P2" would be greatly appreciated!

Thank you for your insights.

1 answer

1 vote
David Nickell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2025

priority was in (P1, P2)

Thats the JQL

Enjoy

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2025

Hi @Radia Dev 

Adding to David's suggestion, here is the documentation for the WAS IN operator:

https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#WAS-IN

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events