Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,216
Community Members
 
Community Events
165
Community Groups

How do I set the Priority for an Alert when creating with Opsgenie bot in MS Teams?

How do I set the Priority for an Alert when creating with Opsgenie bot in MS Teams?

2 answers

1 vote
Wei Wung Atlassian Team Jan 06, 2022

Although alert priority cannot be sent with the initial create alert command, you can thereafter use the lately added update priority command to update the alert priority.  The following is from the @OpsGenie bot help command:

  • update priority to [P1,P2,P3,P4 or P5] for [tinyID] - Update priority of the alert with [tinyID].

Here is an example:

@Opsgenie update priority to P2 for 1117

where 1117 is the alert tinyId. 

1 vote
Connor Eyles Atlassian Team Nov 21, 2021

Hi Chris,

I dont believe you can set the priority directly from the Microsoft Teams Opsgenie Bot. As a workaround what you could do is setup a global policy to listen for certain conditions that come from the Microsoft Teams bot to change the alert priority.

Setting up the global policy:

  1. Go to Settings > Global Policies.
  2. Add an alert policy.
  3. Set the conditions to match the source which should be MSTeamsV2 and if the message contains P1.
  4. Define the priority in the alert policy to be P1.
  5. Now when triggering a new alert from the Opsgenie Bot if the message contains P1, it will create the alert as P1.
  6. Repeat these steps for each of the priorities.

Check out the following screenshot of the setup and this in action:

Image 2021-11-22 at 12.33.44 pm

Image 2021-11-22 at 12.35.19 pm

Image 2021-11-22 at 12.41.26 pm

Hope this helps!

Thanks,

Connor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Apps & Integrations

📅 Partner Webinar & Events Opportunities: July 2022

Hi community 👋, Here is another monthly roundup of the partner-organized events in July 2022. If there is any event missing please let me know in the comments below 🙏 If you're looking for Atla...

20 views 0 1
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