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?
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:
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.
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:
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.
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...
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