Inherit Fields via Automation only if destination issue fields are not empty

Kaja Iske
Contributor
July 9, 2024

Hi,

I have built the following automation:

 

Unbenannt.PNG

I want to inherit the fields "Change type" and "Affected Product". This should only be possible if the destination issue fields are not empty. Can you help me please? My attempts have all failed so far.

2 answers

1 accepted

0 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 9, 2024

Hi @Kaja Iske 

You could check the fields in {{destinationIssue}} with a condition so the rule only proceeds when they have values:

https://confluence.atlassian.com/automation/jira-automation-triggers-993924804.html#Jiraautomationtriggers-issuelinkedIssuelinked

Kind regards,
Bill

Kaja Iske
Contributor
July 9, 2024

@Bill Sheboy Thank you - that worked for me :-)!

Unbenannt.PNG

Like Bill Sheboy likes this
0 votes
Dick
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 9, 2024

After the When statement, you would typically put the link containing the linked issuekey in a variable like {{linkedOrigin}}. Then you can use smart values like {{linkedOrigin.customfield_xyz}} to transfer the values to your current issue

Thing is: 
I suspected the "change type" and "affected product" are custom fields. You need to fill in their correct numerical value in the smart value formula xyz. 

You can lookup the exact custom field names when doing an issue search in the advanced issue search mode.

Suggest an answer

Log in or Sign up to answer