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

How to create an alert filter based on the text within an alert's description?

Issy Pearson December 8, 2022

I'm having trouble filtering alerts that use the Slack integration. In this case I would only like alerts containing "This is a test" in their description field to use a Slack integration. Below is the filter I have applied to my Slack integration.

Screenshot 2022-12-12 112901.png

I've also checked and confirmed that alerts contain "This is a test" in the description field by going to  OpsGenie > Settings > Logs.

Any help would be much appreciated.

Thanks :)

1 answer

1 accepted

1 vote
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2022

Hi @Issy Pearson ,

Maybe try filtering with regex using one of these values:

.*(This is a test).*

(?i).*(This is a test).*

The second would be case insensitive.

 slack1.jpg

 

I typically use regex101 to validate if an expression will work.

Issy Pearson December 11, 2022

@Nick H Yep that works thank you! I shall definitely have to brush up on my regex.

 

Cheers,

Issy

Like Nick H likes this
Daiying Lin June 1, 2024

hi there i am also trying to create an alert filter for the integration between Jira & Slack. 

I have read this article many time -> https://support.atlassian.com/jira-service-management-cloud/docs/work-with-alert-filters/

but somehow I wondering 

1. if i set an alert like this one as blow - people might receive a lot of alert notification, however it is still logical, no?

image.png

2. couldnt understand why the following sentence dont work 

- only aleart that with all the condition

-- priority equals P3 (same like in the article)

-- description contains alert 

image.png

 

Do i make any mistake or do i unterstand it totally wrong?

Many thanks for anz recommandation and advice!

 

 

 

 

 

Brennan Kiely
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2024

Hi @Daiying Lin - I would recommend reaching out via support ticket for this so we can get a better look at your setup.

Like Daiying Lin likes this
Daiying Lin June 3, 2024

@Brennan Kiely many thanks for the reply!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events