Forums

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

Copy custom field (label) from parent to subtask

Elena Denoeva
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!
April 9, 2020

I use this script https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/subtask-default-fields.html.

I can copy all other fields but can't copy custom field (label). This filed is empty.

1 answer

0 votes
Kira Graf
Contributor
April 12, 2022

I know it's a bit later but I ran into this issue too so for anyone else googling how to do it.

 

The scriptrunner page says to use:

getFieldById(LABELS).setFormValue(parentIssue.labels)

 

but you actually need to use:

getFieldById(LABELS).setFormValue(parentIssue.labels*.label)

Suggest an answer

Log in or Sign up to answer