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()?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.