Forums

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

Using smart value of custom field in automation rule not working

Gary Spross
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.
June 23, 2022

Trying to create an automation rule (Scheduled) that will read in the value from a numeric custom field and use that in the JQL to figure out if the issue was last updated beyond a certain period of time (whatever the custom field value is set to).

status = "Hold For Feedback" AND updated < -{{issue.fields.customfield_10303.value}}d

This is the error that gets produced:

 

Error running query for scheduled JQL trigger:
"(status = "Hold For Feedback" AND updated < -d) AND (project in (10146)) AND (updated >= -2m)" - Date value '-d' for field 'updated' is invalid. Valid formats include: 'yyyy/MM/dd HH:mm', 'yyyy-MM-dd HH:mm', 'yyyy/MM/dd', 'yyyy-MM-dd', or a period format e.g. '-5d', '4w 2d'.

1 answer

0 votes
Mikael Sandberg
Community Champion
June 23, 2022

Hi @Gary Spross,

Welcome to Atlassian Community!

Try use {{issue.customfield_10303}} instead and see if that helps.  

Gary Spross
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.
June 23, 2022

Hey Mikael! Tried {{issue.customfield_10303}}. Same error message.

Like Gazaliy Alade likes this

Suggest an answer

Log in or Sign up to answer