Hi,
I'm trying to use a replacement function in my automation, but I could not find the correct syntax.
{{issue.summary.replace("Upgrade","VAL - MDM deployment")}}
The goal is to replace the word Upgrade/UPGRADE to VAL - MDM deployment.
Does anybody knows how to modify the syntax to be case insensitive.
At the moment, if the original text is upper case UPGRADE, it doesn't work like expected.
Many thanks in advance for your help,
Best Regards,
Henri.
Hi @Henri Kowalski -- welcome to the community,
One solution that comes to my mind would be to first convert the string to UpperCase and also using only upper case letters in your string target within the replace function.
I tested with the following automation rule and it worked:
{{issue.summary.toUpperCase().replace("TEST", "Deploy Test Environment")}}
Hope I understood your requirement and this is helpful. Please let me know if you have any further questions.
Best
Stefan
Hi Stefan,
This is exactly what I was looking for!
It's working perfectly.
Thanks a lot!
Br,
Henri.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.