Troubleshooting Jira Automation Rule for Date Calculation with Review Frequency

Abdur Rehman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 24, 2025

 

Hi @Stefan Salzl 

 

I am currently working with an object in the IT Infrastructure schema, and I’m trying to update the "Next Periodic Review Date" by adding the "Review Frequency" (integer) to the "Last Periodic Review" (date) field.

 

I have configured the rule as follows and reviewed the audit logs:

{{object.Last Periodic Review Date.plusYears(object.Review Frequency).format("MM/dd/yyyy")}}

The rule successfully retrieves the correct object when triggered, and the values are fetched correctly. However, when using this rule, it returns NULL for the "Next Periodic Review Date". When I manually input plusYears(4) instead of plusYears(object.Review Frequency), it works as expected

 

Could you kindly suggest what might be causing this issue with the smart value?

Thank you in advance for your helpJIra Service Management.pngJIra Service Management 1.png

1 answer

1 vote
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.
January 24, 2025

Hi @Abdur Rehman -- Welcome to the Atlassian Community!

When using the Lookup Objects action, that loads the results in this smart value:

{{lookupObjects}}

Followed by the attributes needed.  Did you intend to use the results of the lookup in one of the later rule steps, such as the plusYears() function call?

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events