Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Connor McBrine-Ellis December 3, 2021

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

2 votes
Answer accepted
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 3, 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

Connor McBrine-Ellis December 3, 2021

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

Like blake_washer likes this

Suggest an answer

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

Atlassian Community Events