Heyyyy,
Imagine a simple automation to Finds & Replace a string in the description of an Issue. When manually triggered, it asks for the old value to find, and the new value to replace it with.
Is there a way to replace multiple different values in a single function (or automation component), or do I need to add a component for each string I want to find/replace?
Something like replaceList()?
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#replace-String-target--String-replacement-
Thanks!
Hi @Mee Soo
There is no built-in function to do that. Instead you could chain the operations, such as:
{{issue.description.replace(userInputs.oldValue1, userInputs.newValue1).replace(userInputs.oldValue2, userInputs.newValue2)}}
Kind regards,Bill
Hey thanks, that works
Much better than a long list of components.
It looks like you're new here. Sign in or register to get started.