Forums

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

Automation to set value based on when an epic link is added or removed

Ron McFarlane January 23, 2022

I am looking to copy a custom text field from an Epic when an epic link is added to an issue or clear the field when the epic link is removed.

 

Epic link is not a value I can use in the selection condition have been looking at the change log.

This rule works fine when you add an Epic link. But when the Epic Link is removed it continues past the compare values  and then fails as the is no Epic.

I was expecting to have a separate rule to clear the values when Changelog.Epic Link equals Empty 

 

Any recommendation as to a workable solution would be appreciated.

Screenshot 2022-01-24 181715.pngScreenshot 2022-01-24 181837.png

1 answer

0 votes
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2022

Hvae you tried having the left hand side of the condition simply:

{{issue.Epic Link}}

This will already be the latest value of the Epic Link field so when you've cleared it, it should evaluate to empty

I think the current value doesn't have the correct closing tag. It needs a {{/}} after the to

The best way to debug the smart value is to add a "Log action" before the condition and then just log out the smart value and then you can see what value you're comparing

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events