I am having issues with carriage returns entered into the resource name of one of our tickets. This breaks the jira loader if present. I am able to create jira automation rules to get rid of spaces etc but I am unsure how to do this for carriage return.
Hi @Conway_ Claire _GT COO - Operations Supp L_ GCOO Centre_
Welcome to the community!
To remove carriage returns from a field value in Jira Align using automation rules, you can use the replaceAll()
smart value function. This is similar to how you'd remove spaces or other characters.
You can use the following smart value in your automation rule:
{{issue.ResourceName.replaceAll("\n", " ")}}
\n
represents a newline or carriage return." "
or any other character you prefer.If you're using a Create Variable action first, you can store the field value and then apply the transformation:
{{varResourceName.replaceAll("\n", " ")}}
This is great Sushant! Thank you very much for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Conway_ Claire _GT COO - Operations Supp L_ GCOO Centre_ You're welcome. If you found the answer useful, please consider accepting it to help others in the community.
Regards,
Sushant Verma
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.