Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How can i do string processing in alert field in opsgenie with some If condition?

D G I'm New Here Apr 12, 2021

I have a use case where i am using email integration for multiple type of alerts.. for one type subject contains "<" and hence opsgenie truncates the subject and just show before "<". in order to fix this i used {{ subject.substringBefore("<")}} {{ subject.substringAfter("<") }} in Alert field.. but this will break other alerts which doesnt have "<".. i want to use some if condition.. is it possible?

1 answer

0 votes
Nick H Atlassian Team Apr 12, 2021

Hi @D G ,

You should be able to configure "if conditions" within the Advanced tab of the Email integration. Note - the Advanced tab is only available on the Standard and Enterprise plans.

Each Create Alert action acts as an if condition - so IF the filter of the Create Alert action matches the defined conditions, THEN continue with that Create Alert action.

IF the filter of the Create Alert action does not match - Opsgenie will look at the following action(s) to try and find a match.

That configuration might look something like below with a few different actions / filters:



Hope this helps! Let us know if you have any other questions, issues, etc. - especially if you are seeking something else.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Opsgenie

New GitLab integration in Incident Investigation view

We launched the first version of the Incident investigation view in April of 2020 for Bitbucket Pipelines. Shortly after that, we added the ability to investigate deployment-related incidents in Opsg...

320 views 0 4
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