I need to list the issues that are solved the same day that were created. I try to use creater=resolved, but it doesn't work.
Here is the working query for me:
project = MyProject AND created >= 2021-11-29 AND created < 2021-12-05 AND issueFunction in expression("", "created.clearTime()==resolutionDate.clearTime()") ORDER BY created DESC, updated DESC
created >= 2021-11-29 AND created < 2021-12-05 - any period you're looking issues in
issueFunction in expression("", "created.clearTime()==resolutionDate.clearTime()") - the condition, that converts Date-Time format of "created" and "resolutionDate" to only Date-format and compares the received dates with each other
Note, that you need using plugin (I'm using ScriptRunner)
Another idea that make work for you; it's a bit cumbersome, but it gives the desired data. Perform an issue search, such as
project = br and resolved >-60d and resolution is not empty
noting that by default at most 1000 issues will be listed, so you'll want to limit the search as much as you can (e.g. limit to a particular project, resolved within the last xx days, etc.)
and display the Created and Resolved columns.
Then export to CSV the Current Fields. Open with Excel and add a column like
where F and H are your columns with the Created and Resolved dates. You may need to set the data type of the new column to Number. You can then sort your data by that column; all the 1's (created and resolved the same day) will be grouped together.
Unfortunately JQL doesn't have the ability to compare two date fields directly, so you can't for example query on "resolved >= created". You can only compare each field to fixed values or functions like "now()" or "startOfDay".
So to achieve this (without a plugin) you would have to run the query for each date you want to check.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events