I'm looking for help with a JQL filter that will remove any tickets that were created and resolved in under a minute to get more accurate ticket metrics.
This isn't possible using native JQL - which gives you two options:
I've detailed both options below.
Option 1 - Automation
You could use Automation to populate a custom "Number" field, which could detail the amount of time between Created and Resolved.
Prerequisite:
The Automation Rule would then look like this:
Result:
resolution is not EMPTY and "Custom Number Field" > 0
---
A few notes on this rule:
resolution is not EMPTY
Option 2 - App:
You could also look into whether an App can help you, with more advanced JQL functions.
Apps which extend JQL include...
You could then use functions like dateCompare (this is from Enhanced Search) - for example...
issueFunction not in dateCompare("resolution is NOT EMPTY", "created +1m > resolutiondate ")
...should find you issues that were not resolved within 1 minute of creation. Other Apps could have similar functions - eg. JQL Search Extensions has DateCompare I believe.
You'll need to trial/test Apps for this approach, but there's options to do this.
I hope one of these options works for you!
Just as a final note, I did trial Option 1 and it works - but I didn't test Option 2, so you might need to test/tweak the JQL, depending on the App and your logic.
Ste
Hi @Ste Wright
What a wonderfully detailed response. This will work perfectly. I'm going to give Option 1 a shot first.
I sincerely appreciate the time and effort!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ste Wright
I know it's been some time, but due to lack of access I had to request the "Custom Number Field" which was named "Time to Resolve". One of the admins on the project did create that field for me.
As far as running this against previously closed issues, which I do want to do, I wanted to test on a small sample size of dates. I wanted to make sure these dates had at least a couple of issues that were resolved in a minute or less. For the JQL for the scheduled trigger I opted to use (and I assumed this was the correct way to do so) project = ITAS AND "Location[Dropdown]" = "LOCATION HERE" AND created >= 2022-10-04 AND created <= 2022-10-05 AND resolution is not EMPTY
Where I'm getting a bit lost is the next step, Add Component. I made the assumption I would select New Action > Edit Issue > Choose Field To Set > Time to Resolve, but then after that point is where I get tripped up.
Forgive me, I'm still learning the wonder that is JQL.
I sincerely appreciate your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you mean the Action in the Automation Rule - i.e
If yes, the value would go into the box next to "Time to Resolve" - this is a smart value, which will calculate the numeric value based on the rule being run :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.