Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Smart values for copying multiple labels


I'm currently working on an automation rule that copies a project code (custom field) and labels from an initiative to an epic.

This is done with smart values (due to different projects etc.) and works great for project code (only one value).
But for the labels, this is an issue when multiple labels are being copied.

In the image below you can see the rule where the value of the label field if the initiative is being copied, currently also logged for debugging purposes, and then normally being pasted in the label field of the epic. but when multiple labels are used they are combined to one value like this: "Label1, Label2". This is an issue for the pasting of that value in the epic label field as a space is not allowed.

How can I separate this value into multiple labels? Or is there a better way to copy this?

Screenshot 2021-12-09 110718.png

1 answer

1 accepted

0 votes
Answer accepted

Hi @Kaj Sennelöv 

You are trying this for an initiative and epic, which do not have supported parent/child handling in automation yet (I think)...I know of one way to do this with automation:

Kind regards,

Hi Bill,

Thank you for your suggestion!
I've tried multiple setups of this, but haven't gotten it to work fully yet.

Also tried with the ".asJsonStringArray" addition when creating the variable, without any luck.

This might though be the way forward, I'm just missing the last bit to format everything nicely I think.


Hi @Kaj Sennelöv 

Please try to save your labels from the parent in a created variable (varParentLabels) as this:


Then when you edit the child to set the labels, you may use this:

"fields": {
"labels": {{varParentLabels}}

If that still does not work, please post an image of your complete rule.  That may provide some context for what is happening in the edit.

Kind regards,

Hi Bill,

I thought I tried this combination, but apparently not.
It works!


Thanks again for your suggestion, Bill!


Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

434 views 19 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you