Forums

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

How to write query to get a list of issue having status changed after a certain date?

manikanta ch November 2, 2021

How to write a query to get a list of issues having status changed after a certain date(custom date field at the issue)?

Example - 

Project=xyz and status was in "x" AFTER "custom date field"

Thanks in advance,

CH

2 answers

0 votes
Walter Buggenhout
Community Champion
November 2, 2021

Hi @manikanta ch ,

I don't see an immediate way to pull that off with JQL. If you know the date, you could write a fairly simple query like this:

Project = xyz AND Status CHANGED AFTER StartOfWeek()

where StartOfWeek() may just as well be any other date.

I am trying to get my head around what you are trying to achieve. The best I an come up with, is that your are trying to assess whether a certain action has taken place before or after the foreseen target date.

So if that may be your use case, you could simplify your search by adding a postfunction to the transition that you are tracking and conditionally setting e.g. a custom field on the issue with either your transition date or just an indication that the issue was delivered on time or not.

Depending on your implementation, you could perform a simple search on that marker (on time or not). Or if you have Scriptrunner, you could then search with a DateCompare function to retrieve the relevant issues. e.g:

issueFunction in dateCompare("", "resolutionDate > dueDate")

Quite a few assumptions there, but still hope this helps!

0 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
November 2, 2021

Hi ya!


As far as i know, you cannot use a custom datetime field on AFTER operator just relative amounts like -1d and so on...

 

Sorry.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, product operations, product ops, linkedin live, atlassian events, cross-functional collaboration, product management, engineering collaboration, design collaboration, atlassian learning, agile teams, product strategy

Product Ops Unpacked: 4️⃣ tips every product pro needs to know ✍️

Join PM Evangelist, Axel Sooriah, & Product Ops. Consultant & Advisor, Jenny Wanger, as they unpack the role of product ops and discuss key takeaways in Atlassian’s ‘The Product Ops Mission’ guide. They’ll answer your questions live on May 6 at 9:00am PT.

Register here ⬇️
AUG Leaders

Atlassian Community Events