Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

2,372 views 0 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you