Automatically assign parent issue custom field to sub-task

Adam G
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!
February 9, 2024

I'm trying to set up an automation where when a sub-task gets created, it automatically inherits the value of a custom field (in our instance, this is "Scrum Team", customfield_10035) from the parent issue.

The code I have in place at the moment is:

{
"fields": {
"customfield_10035": "{{issue.parent.customfield_10035.id}}"
}
}

 

When the automation runs, I see an error:

Error editing issues

XYZ-20570 (Specify a valid 'id' or 'name' for Scrum Team (customfield_10035))

It looks to be expecting an actual value for the Scrum Team, rather than inheriting it directly from the parent issue.
I want to be able to allow this automation to run right across our project, which has many scrum teams within it, so ideally want to get this value from the parent issue.
I'm not the project owner, although I can ask them to create the automation if needed. I'm also not a Jira admin as our organisation is a large one, so its managed by a completely different team.
Any help is appreciated!

1 answer

1 accepted

1 vote
Answer accepted
Rik de Valk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 9, 2024

Hi @NimbleGrimble , 

I think you can use the Edit Issue action, select the field 'Scrum Team' (in the below example I selected a field 'Backout plan'). 

Then hit the ... behind Scrum Team and switch it from Set to Copy. And switch the 'Issue to copy the value from' from Current issue to Parent issue. 

Screenshot 2024-02-09 at 17.49.04.png

Adam G
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!
February 12, 2024

This did it! Thank you! The "Set" option didn't have "Copy from parent" like the Assignee value did, so I didn't think that was possible... That worked great! Thanks again!

Like Rik de Valk likes this

Suggest an answer

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

Atlassian Community Events