replace insensitive text in summary for automation

Henri Kowalski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2022

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.

1 answer

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 5, 2022

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:

image.png

{{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

Henri Kowalski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2022

Hi Stefan,

This is exactly what I was looking for! 

It's working perfectly.

 

Thanks a lot! 

Br,

Henri.

Like Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2022

Hi @Henri Kowalski 

AWESOME! Great to know you got that working 🎉💪

Best
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events