Forums

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

JQL query to update field after 7 days (Jira server)

Edgar Pusklevic December 12, 2022

Hi everyone ,
situation: I'm doing automation for project , and I need that every task with status Ready  should change to status Done after 7 days last update.

 

status=Ready and 'Updated' > '7d'

status = Ready working , also he should check field Updated  , and if it's older than 7 days , automation should change status to Done.

 

6 answers

1 accepted

0 votes
Answer accepted
Edgar Pusklevic December 14, 2022

thanks for all. working rule is here:

ready-Done.png

1 vote
Rilwan Ahmed
Community Champion
December 12, 2022

Hi @Edgar Pusklevic ,

Create a automation using "Scheduled" trigger (example: Run daily at 01:00 AM) and below JQL in the conditions. 
status = Ready AND updated < startOfDay("-7d")

image.png

0 votes
Edgar Pusklevic December 14, 2022

thanks for all , working config is in photo.

Rilwan Ahmed
Community Champion
December 15, 2022

Hi @Edgar Pusklevic ,

Please accept the answers which helped you. Users with similar query will find it useful

0 votes
Gokaraju gopi
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.
December 12, 2022

@Edgar Pusklevic 

You need to schedule an automation.

at15.JPGat16.JPG

0 votes
Tharaka_Hettiarachchi
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.
December 12, 2022

Hi @Edgar Pusklevic ,

 

you can create a automation like this

1. Create a 'Scheduled' trigger which will run everyday at a given time

2. Create 'New Condition' -> 'If / Else' 

Check your conditions

- Status in 'Ready' & check that the issue has updated more than 7 days 

Screenshot 2022-12-12 at 14.01.08.png

3. Then transition your task to 'DONE'

 

Cheers!

0 votes
Fabio Racobaldo _Herzum_
Community Champion
December 12, 2022

Hi @Edgar Pusklevic ,

please try the following JQL :

status changed TO "Ready " BEFORE startOfDay(-7)

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events