The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events