Hi,
I've a ask to copy the component value to a custom label field on field change.
I've used {{issue.components.name}} for the same. However, I've spaces in between the component name and due to which the labels are created separately. I want to replace space with a character to avoid separate labels.
Any pointers?
Thanks in advance
Aditya
Hi Vishal,
I've already tried it and it doesn't save. Maybe it is not a valid option.
Thanks,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share the SS of your complete automation including how you are editing the field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to get this to work with a global variable and used the variable to update my custom label field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community, while copying the Component values to the Labels list, it's possible to replace the space characters with another character using an "Additional Fields" custom script.
{
"fields":
{
"labels": {{issue.components.name.asJsonStringArray.replace(" ","-")}}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Pasam for your response. It gave me a parsing error.
Error while parsing additional fields. Not valid JSON.
can you please help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Aditya Sastry have you used the same script
{
"fields": {
"labels":
{{issue.components.name.asJsonStringArray.replace(" ","-")}}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.