Forums

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

Automation- reference another field and edit

Shannon Miller
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!
July 12, 2022

Hello! I'm setting up a team-managed business project and having trouble with an automation.

I have 2 custom fields: Max End Date and Return Date

I would like to set it so that when an issue is created it reads the Max End Date and populates the Return Date with that value plus 6 months.

This is what I currently have (also tried with issue.Max...) it keeps saying it executed successfully, but the Return Date field is still blank. Would appreciate any guidance!

Screenshot 2022-07-12 232027.png

1 answer

1 accepted

2 votes
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.
July 13, 2022

Hi @Shannon Miller -- Welcome to the Atlassian Community!

The issue created trigger can fire faster than the data is available...and without seeing your audit log details it is possible the condition shows the field as empty.

The work-around for that is to add a Re-fetch action immediately after the trigger, and before the condition.  This will slow the rule and reload the data before proceeding.

Next, try modifying your value for the edit to add issue. first, such as:

{{issue.Max End Date.plusMonths(6)}}

Finally, if that does not help, you may have the wrong smart value name for the field: they are case sensitive and spacing sensitive.  To confirm that, find an example issue with your field set and try the information in this how-to article to find the name, or to use the custom field id: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Shannon Miller
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!
July 13, 2022

Thank you Bill! It looks like there's another "Max End Date" field on another project so it was looking for the wrong one. Found the correct ID and it is now working properly!

Like # people like this
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.
July 13, 2022

Awesome; I am glad you got it fixed!

Like Stefan Salzl likes this

Suggest an answer

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

Atlassian Community Events