Hi,
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:
Kind regards,
Bill
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.
-Kaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try to save your labels from the parent in a created variable (varParentLabels) as this:
{{issue.labels.asJsonStringArray}}
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,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I thought I tried this combination, but apparently not.
It works!
Thanks again for your suggestion, Bill!
-Kaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kaj Sennelöv can you please post the entire rule, I am facing an issue while copying the specific labels from epic to story, it would be helpful if you can post the entire rule.
Note : Epics are created in different project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.