The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation Rule - Trigger another field based off of a custom date / time field

Garry Broughton Jr.
June 3, 2024

Looking for advice on how to trigger or set the value of another field based off of the following criteria below...(triggering another field is the easy part, how to do it based off of the below criteria is what I'm struggling with).

 

For context..

We have a Custom "Date and Time" Field (used for scheduling the execution of a specific activity to take place at this date and time)

Trigger Criteria: Change the value of another field, for example, change it from false to true, if the scheduled date and time is > 5 hours away / 5 hours in the future, when this Automation rule triggers, which will be at the same time daily.

 

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Bill Sheboy
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 Champions.
June 3, 2024

Hi @Garry Broughton Jr. -- Welcome to the Atlassian Community!

If you can write a JQL query based on your date / time field and criteria to identify the issues to update, a rule could use that JQL in a scheduled trigger.

For example:

project = yourProject AND yourDateTimeField > 5h

In this case, the "5h" is relative to the current date / time.

Kind regards,
Bill

Garry Broughton Jr.
June 3, 2024

I will try this and report back, thank you!

Garry Broughton Jr.
June 5, 2024

Thank you sir, this worked perfectly!

Like Bill Sheboy likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events