Forums

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

MS Teams integration filters

PGreenhalgh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2025

I have an MS Teams v2 integration where alert messages are sent to a Teams channel when an alert is created in Opsgenie.

I have an alert filter set up of:
Match one or more conditions below
Message Not Contains 4xx

I was hoping that this would prevent any messages being sent to the Teams channel where the message field contained "4xx" but this doesn't seem to be working.

Is this how the filters should work, or does the action of sending a message upon create override the condition filter?

1 answer

0 votes
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2025

Hello There,
Thanks for reaching out to Atlassian Community!

The filter you’ve set up (Message Not Contains 4xx) should work as expected to prevent alerts with "4xx" in the message field from being sent to the Teams channel. However, if it’s not working, there are a few things to check:

  1. Filter Placement: Ensure that the filter is correctly configured in the Microsoft Teams v2 integration settings. Filters in Opsgenie integrations are applied to determine which alerts are forwarded to the integration.

  2. Action Mapping: By default, Opsgenie forwards several alert actions (e.g., create, acknowledge, close) to Microsoft Teams. The "Create" action is mandatory and cannot be disabled, but the filter should still apply to it.

  3. Filter Logic: Double-check the filter logic. For example, ensure there are no typos or formatting issues in the condition (Message Not Contains 4xx).

If the filter is correctly configured and still not working, it’s possible that the integration is not applying the filter as expected. In this case, I recommend:

  • Testing the filter with a different condition to confirm if the issue is specific to "4xx".

  • Reviewing the integration logs in Opsgenie to see if the alerts are being forwarded despite the filter.

If the issue persists, it might require further investigation by Opsgenie support. Please contact us using the following link - https://support.atlassian.com/contact/ 

Best Regards,
Egor

Suggest an answer

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

Atlassian Community Events