Forums

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

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 edited

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 Champion
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
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events