Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,128
Community Members
 
Community Events
168
Community Groups

String Processing: Can I use "substringBetween" together WITH "toUpperCase"

Hi there, I am hoping to do something like this:

{{ from_address.substringBetween(".","@") }}

But then take that output and capitalize it using toUpperCase().

I tried a few different ways but it doesn't appear to be possible.  Looks like you can only do one operation on an "Alert Field".

Does anyone have any suggestions, other than capitalizing the text before it reaches OpsGenie?

1 answer

1 accepted

1 vote
Answer accepted
Samir Atlassian Team Dec 03, 2021

Hi @Connor McBrine-Ellis !

 

I just tested the following and it worked

{{from_address.toUpperCase().substringBetween("@",".")}}

 

You should be able to combine the toUpperCase() method, with the substringBetween method.

 

If you're having issues with this, please reach out to support and we can assist you!

 

Thanks,

Samir

Awesome!  Thanks a bunch, I didn't try it that way!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events