Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events