Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,018
Community Members
 
Community Events
168
Community Groups

Automation - How to copy field from linked issue when issue is linked

Edited

For clarification, I have Jira Cloud. I am trying to create an automation that copies a custom field called "Relative Control Weighting (1-10)" (customfield_10059) from the linked issue into a different custom field called "Control Weighting Score" (customfield_10079) in the current issue.

The source field is a Dropdown type. The destination field is a text type (since I found you cannot do this on a dropdown type)

After reading up on this link, I have:

When: Issue Linked - Type: Related to

Then: Edit issue field - Advanced

{
"fields": {
"customfield_10079": "{{issue.issuelinks.inwardIssue.customfield_10059}}"
}
}

 

The automation runs, but does not copy the source field to the destination field. In fact, I see nothing has changed. The audit logs show SUCCESS:

Edit issue
Issues edited successfully
ESS-209

Which is weird because ESS-209 is the issue that I am linking, and from which I want to copy the custom field. So it should not be editing ESS-209.

EDIT:

I have also tried using:

{
"fields": {
"Control Weighting Score": "123"
}
}

just to try to statically set the value to 123, but it does nothing.

1 answer

1 accepted

3 votes
Answer accepted

I figured it out!

My problem was I was attempting to update the issue that I was linking, rather than the issue on which I was creating the link.

Solution:

When: Issue linked, Type: Relates

For Linked issued: Types: Relates

Then: Edit issue fields...

Suggest an answer

Log in or Sign up to answer