Forums

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

what is the JQL for created = resolved

Mark Rowlands March 5, 2019

I am trying to get a report of all incidents that where opened and closed on the same day. Is there any way to do this in standard Jira ( 7.5 or 8.0 )  

2 answers

1 accepted

1 vote
Answer accepted
Manon Soubies-Camy
Community Champion
March 5, 2019

Hi @Mark Rowlands

You can't do this in standard Jira, see this feature request: Add ability to compare date fields using JQL.

If you have ScriptRunner installed, you can use the DateCompare JQL function:

issueFunction in dateCompare("", "resolutionDate = creationDate")

Hope this helps,

- Manon

Antoine Berry
Community Champion
March 5, 2019

Hi,

I get this error when trying this exact JQL : image.png

Is this a bug ?

Anyway I can use 

issueFunction in dateCompare("", "created + 1d > resolved")

instead I guess. 

Manon Soubies-Camy
Community Champion
March 5, 2019

Thanks for your feedback, then I guess the query should rather be:

issueFunction in dateCompare("", "resolutionDate = created")

 or:

issueFunction in dateCompare("", "resolved= created")

I can't test it right now so let me know if it works :)

Like Pierre Ibrahim likes this
Antoine Berry
Community Champion
March 5, 2019

I have made a few tests and these seem to work only if the issue is resolved within the same minute it was created, so I guess it is comparing up to the hh:mm format ?

Like Pierre Ibrahim likes this
Manon Soubies-Camy
Community Champion
March 5, 2019

That would be possible indeed, I can't find the confirmation within their documentation though. You may contact their support to ensure it's the expected behavior 

Like Pierre Ibrahim likes this
0 votes
Mark Rowlands March 5, 2019

ok, thanks Manon, I got the results i needed direct from the database, not optimal but whatever. 9600 bucks for scriptrunner just for this is not really justifiable ;-)

Manon Soubies-Camy
Community Champion
March 5, 2019

Glad it helped! If you only needed that one JQL, it's indeed a bit too pricy :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events