I need to write a JQL ticket to get the results of tickets which has no updates in the last 4 hours.
project in ("ABC") AND status not in (Closed, Cancelled) AND priority in (Blocker, Critical) AND updated > -4h AND type not in ("Deployment Request", "Operational Request") ORDER BY updated DESC
Please help me if this query is correct?
Or it should be
project in ("ABC") AND status not in (Closed, Cancelled) AND priority in (Blocker, Critical) AND updated < -4h AND type not in ("Deployment Request", "Operational Request") ORDER BY updated DESC
Hi @Vinod Madhappan,
The 2nd one is correct. With some minor tweaks:
Project = "ABC" AND status not in (Closed, Cancelled) AND priority in (Blocker, Critical) AND updated < -4h AND type not in ("Deployment Request", "Operational Request") ORDER BY updated DESC
Updated < -4h means last update smaller than 4 hours ago
Hi @Vinod Madhappan,
The 2nd one is correct. With some minor tweaks:
Project = "ABC" AND status not in (Closed, Cancelled) AND priority in (Blocker, Critical) AND updated < -4h AND type not in ("Deployment Request", "Operational Request") ORDER BY updated DESC
Updated < -4h means last update smaller than 4 hours ago
Thanks @Walter Buggenhout : The use of -(Minus) symbol confuses. When i try this updated > 4h am not getting any result whereas we get results for updated < -4h.
Both are same right? why is not working with updated > 4h ?? @Walter Buggenhout
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am resuming your last question in here, @Vinod Madhappan
If i try the same with updated > 4h , the query does not fetch me any result where as when i try with updated < -4h am able to get the result. Both are same right?
Why does it not work with updated > 4h ?? @Walter Buggenhout _ACA IT_
Following the same example we used before, let me lay out the example again:
As no tickets can be updated at a point in time that is still to come, your query returns no results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well > 4h is a Project Managers Dream! That will tell you which issues will be update in the future 4 hours from now and beyond.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jack Brickey - with machine learning, I'm sure it will be possible to have predictive JQL results. Is there a JAC ticket for this? I'd vote that up with my many Atlassian IDs. 😏
#jokes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. That means that the update was longer in the past than 4 hours ago, right?
=> updated < -4h will show you the ticket. Updated is the system date of the last ticket update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Walter Buggenhout : Thanks the -(minus) symbol confuses.
If i try the same with updated > 4h , the query does not fetch me any result where as when i try with updated < -4h am able to get the result. Both are same right?
Why does it not work with updated > 4h ?? @Walter Buggenhout
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Walter Buggenhout : Am little confused now with this reply.
"Updated < -4h means last update smaller than 4 hours ago"
I need to get a result of tickets which is not updated in the past 4 hours. For ex: If a ticket is updated 4 PM, and if i run a query at 9 PM i need to have that ticket in my query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.