Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,036
Community Members
 
Community Events
184
Community Groups

Using updated field in JQL query for automation

I created an automated query where it states whenever this ticket is in a specific status and the ticket has not been updated more than 30 days, this ticket shall be marked completed with a comment: "No response from a client".

Below is the query:
status = "Resolved by Tech" AND updated <= "-30d"

For some reason, Jira Software automatically mark the ticket as completed with a comment once the status is set to "Resolved by Tech" and the ticket has been updated way less than 30 days.

What's wrong with this query?

1 answer

0 votes
JM Perrot
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2023 • edited

Hello @Andrew Graves 

If you want track issues without updates since 30 days or more maybe you should query :

updated >= 30d

So your query should be : status = "Resolved by Tech" AND updated >= 30d

Let me know if my answer is right or if I misunderstood something :)

I tried that and still get the same outcome. 

JM Perrot
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2023 • edited

You get the same outcome when you inverse the sign, that strange.

You already tried :

status = "Resolved by Tech" AND updated <= startOfDay(-30d) ?

Maybe you can try UpdatedDate <= -30d too (my bad, for my, your first query is working well)

Else if it's a bug from Jira, you can try to create a new filter (if you use it in a board or I don't know)

I haven't tried using "startOfDay" in the query yet.  I just added it in another Jira project for testing and see how that goes with a test query showing this (see below):

status = "Resolved by Tech" AND updated < startOfDay("-1d") ?

JM Perrot
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2023 • edited

Nice, let me know if this function works in your case, I'm curious.

startOfDay(-1) will return, in theory, all issues of yesterday. If you want to include today, you can switch for endOfDay(-2) (or -1, I don't remember)

So far it does look like it is working.  I need to do additional testing to confirm for sure.

Like JM Perrot likes this

Suggest an answer

Log in or Sign up to answer