youngmon/atlassian-qna huggingface dataset:
Priority field mapping with OpsGenie - Not all choice Map
Asked by Adam Rosenbaum:

I have configured my Priority field to map with OpsGenie Priority Alert field. Critical and High set the corresponding OG Alert Priority but medium and low do not. I have read articles about legacy systems etc, but this is not an all or none, this a some and some do not. I have already double checked my Priority settings in Jira.

Any Suggestions?


Answers:
author: John M
body: Hi [@Adam Rosenbaum](/t5/user/viewprofilepage/user-id/5314748) ,

Can you post a screenshot of your 'create' action on the integration showing the priority field as well as a screenshot of the portion of the unprocessed incoming payload from Jira that shows a low or medium priority being sent?

comments: author: Adam Rosenbaum
body: ![Screenshot 2023-10-18 at 2.35.38?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/287338iA92DB4662CBBD1EB/image-size/large?v=v2&px=999 "Screenshot 2023-10-18 at 2.35.38?PM.png")


author: Adam Rosenbaum
body: sorry john i posted yesterday but not as a reply. It's not a matter of creation. This is how I have Priorities set up in the Priorities module. When I change the priority in JSM (left column) the only time it reflects the change in OpsGenie (right column) is when I change from any status to Critical or High. When I change the status to Medium or low, the OpsGenie alert priority does not reflect the chnage


author: John M
body: Thanks for the screenshot, [@Adam Rosenbaum](/t5/user/viewprofilepage/user-id/5314748)

If you're updating the priority of an existing alert, the priority can only be increased but not decreased via deduplication. So sending an alert update from JSM wouldn't be able to change the priority to a lower priority.

<https://support.atlassian.com/opsgenie/docs/update-alert-priority-level/>


author: Adam Rosenbaum
body: thats interesting. Why does it work from P1 to P2 or P2 to P1 but noting below that?

Also, I've read that this can be accomplished through automation. If Issue Priority changes then Alert Priority = Issue Priority? What I haven't been able to figure out is how to address those specific fields. Even though Priority is a field, you can 't find it in custom fields. It's actually set in the Priority module. So is automation a possibility?


author: Adam Rosenbaum
body: Also, is de-deuplication the reason why when I change the priority to Critical or High the A new alert is created with the subject "incident raised"?


author: Adam Rosenbaum
body: Has nothing to do with creation. I have 4 priorities set up in JSM. They are mapped to Alert Priorities in JSM (see attachment) When I change to critical or High, alerts chnage to critical or high, when i chnage to medium or low, alert priorities will not chnage.![Screenshot 2023-10-18 at 2.35.38?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/287081iE0AE7DB3D04EF5CE/image-size/large?v=v2&px=999 "Screenshot 2023-10-18 at 2.35.38?PM.png"))
How can I create a new Policy using the Opsgenie API?
Asked by Benjamin Lush:

<https://docs.opsgenie.com/docs/alert-and-notification-policy-api#create-policy>

I am following the API documentation for Sample Request. Essentially a copy + paste and changing out the API key.

```
curl -X POST 'https://api.opsgenie.com/v2/policies' \
  -H "Authorization: GenieKey $ATLASSIAN_API_TOKEN" \
  -H 'Content-Type: application/json' \
  -d @policy.json
```

Where policy.json is:  

```
{
    "type":"notification",
    "policyDescription":"notification policy description ",
    "enabled":"true",
    "filter":{
        "type":"match-all-conditions",
        "conditions":[
            {
                "field":"message",
                "operation":"contains",
                "expectedValue":"message"
            }
        ]
    },
    "timeRestrictions":{
      "type":"time-of-day",
      "restriction":{
          "endHour":5,
          "endMin":10,
          "startHour":20,
          "startMin":23
      }
   },
    "name":"Notification with Delay and Restart Actions",
    "delayAction":{
       "delayOption":"for-duration",
       "duration":{
         "timeUnit":"seconds",
         "timeAmount":5
       }
    },
    "autoRestartAction":{
       "duration":{
         "timeUnit":"minutes",
         "timeAmount":2
       },
       "maxRepeatCount":5
    }
}
```

The response I get is:

```
{"message":"Key format is not valid!","took":0.001,"requestId":"fa1fd745-b9e4-4404-869f-2df7ac132939"}%
```


Answers:
author: Nick H
body: Hi [@Benjamin Lush](/t5/user/viewprofilepage/user-id/4006191) ,

Are you using the API key from an Opsgenie [API integration](https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/), or API key from the [API key management tab](https://support.atlassian.com/opsgenie/docs/api-key-management/)?

Or are you using an Atlassian token as shown above in your request?

For the request above, you will need to use either an API integration's key or an API key from the API key management tab.

You may also want to be consistent with the headers as I noticed one is using single quotes while the other using double quotes.


author: Benjamin Lush
body: Looks like this message is regarding the use of an Integration Key. Once I used the Integration Key vs my Personal Access Token, I started getting new errors regarding formatting of Duration and the lack of teamId in Query params. This means the documentation is broken, but at-least I got it to eventually work!


Tags: rest-api
I'm looking to create a saved search, but do not want to include a service name as part of it
Asked by Doug Garcia:

I apologize if this has already been asked elsewhere, but didn't find the answer after looking on the Opsgenie support and a quick look at online documentation.

I am creating a new service and want to see if there is an easy way to exclude the new service as part of a search with some type of syntax != "XXXX" or NOT "XXXX". So far what I've tried hasn't worked.

I know I can create a search with syntax services: "XXXX" OR "YYYY", but it would be just easier if I can make two saved searches since one of them will have to encompass a lot of services.

1. if service equals X

2. if service does not equal X

Thank you for any help!

Doug


Answers:
author: Brennan Kiely
body: Hi Doug,

This depends on where you're building the search.

On the Incidents page, you can exclude a service with: services!: "\[Service_Name\]"

On the Services page, you can exclude a service with: name!: "\[Service_Name\]"

-Brennan

comments: author: Doug Garcia
body: Awesome, thank you Brennan, that is exactly what I needed!

Doug
Is it possible to change the "Sort Option" in Alerts for the organisation?
Asked by Curtis Eveleigh:

We have multiple teams under our organisation and are some what new to using OpsGenie.

We've noticed some stacked alerts are missed as they have been acknowledged and the sort option by default is sorted by created date instead of occurred.

Is it possible to change the default sort option to Occurred company wide?


Answers:
author: Curtis Eveleigh
body: Forgot to mention, we understand the sort option can be changed manually for each user by using the filter, but want to force the option to be set to occurred by default.
Integration Zabbix to opsgenie
Asked by Henrik Schuetze:

We have an working integration between Zabbix 6.4 and opsgenie in EU.

But, no hostname,host_addres,host_alias, or such fields is filled.

Its all in the Description but not i a form opsgenie can work with

The alerts i got from icinga2 have all the fields filed.

I want the hostname in the alert name

is: Problem: Interface ge-1/0/38(ge-1/0/38 - VLAN0000): Link down

wanted: \[Zabbix\]: Switch001 - Interface ge-1/0/38(ge-1/0/38 - VLAN0000): Link down

What can i do?


Answers:
author: Brennan Kiely
body: Hi Henrik,

In order to better assist you, can you create a support ticket at support.atlassian.com for this? It would be best to take a look at the data being received from Zabbix.

-Brennan


author: Mikel Stous
body: We are now using Zabbix and are connected via OpsGenie API

OpsGenie is used to triage alerts, then open a Jira ticket when the Alert is acknowledged.

I have custom template for each site that only contains Macros for the site. We have an opsgenie.alert user that has the profile timezone set to UTC. Since users have their own timezone set for emails, then on the email action, I have said "(timezone set to your profile)",

#### Template Name: {#toc-hId-288497237}

Site - New York

#### Template Macros: {#toc-hId--1518957226}

{$SITE.LOCATION} NYC

{$SITE.NAME} New York City

{$SITE.TIMEZONE} EST (UTC-5) / EDT (UTC-4)

**OpsGenie Media Action - Problem** {#toc-hId-267491029}
--------------------------------------------------------

#### **Subject:** {#toc-hId--838898856}

Alert - {EVENT.SEVERITY} - {$SITE.LOCATION} - {HOST.NAME} - {EVENT.NAME}

#### **Message: (replace Zabbix Server IP with your own)** {#toc-hId-1648613977}

\<b\>Alert / {EVENT.SEVERITY}\</b\>

\<b\>Host:\</b\> {HOST.NAME} ({HOST.IP}) / {$SITE.NAME} ({$SITE.LOCATION})

\<b\>Tags:\</b\> {EVENT.TAGS}  
\<b\>Problem started at:\</b\> {EVENT.DATE} {EVENT.TIME} (UTC)

\<b\>Issue:\</b\> {EVENT.NAME}  
\<b\>Operational data:\</b\> {EVENT.OPDATA}

\<b\>Incident Wiki:\</b\> {$SITE.WIKI}  
-----------------------------------------------------  
\<b\>Problem ID:\</b\> {EVENT.ID}  
\<b\>Problem URL:\</b\> https://*\<Zabbix Server IP\>*/tr_events.php?triggerid={TRIGGER.ID}\&eventid={EVENT.ID}

Proxy: {PROXY.NAME}  
Site: {$SITE.NAME} ({$SITE.LOCATION})

Site Timezone: {$SITE.TIMEZONE}

Host: {HOST.NAME} ({HOST.IP})  
Item: {ITEM.NAME}  
Trigger: {TRIGGER.NAME}  
Operational data: {EVENT.OPDATA}


Tags: cloud
How can I auto close Associated or Responder alerts?
Asked by Kai Dong:

We are migrating to Opsgenie from another product and I have been testing in Opsgenie. One thing we'd like to do is auto close alerts that people may have forgotten to over time.  

I have implemented an automatic closure policy for these alerts as a preliminary trial. However, it appears that none of the associated or responder alerts were closed through this approach. I would appreciate any guidance in identifying any overlooked elements in this process.  
![autoclosealerts.png](https://community.atlassian.com/t5/image/serverpage/image-id/286209i784DFB4F5D1D4886/image-size/large?v=v2&px=999 "autoclosealerts.png")

Edit:

The auto close policy above works inconsistently. It would auto close alerts from integrations like Datadog. Alerts from other integrations like the Opsgenie Alert API it does not auto close. Same kind of alerts are sent through and only 1 occurrence.


Answers:
author: Tom Russell
body: If you're just trying to do cleanup, our team uses an external process for that. We run a script every morning that hits the API to find and close any alerts that have been open for longer than a specified threshold (we use 30 days).

comments: author: Kai Dong
body: Thanks for the response. That will be something we'll consider for cleaning up.  

There's just behaviors that we are not used to. Like recovery alerts from the Datadog integration does not close responder alerts and it continues to alert the on-call when the issue is no longer present. This can become tiresome after a few times.
Modify post mortem template in "Key points section"
Asked by mkurde:

At the moment, we are writing our Post Mortems independent from OpsGenie on Confluence pages but want to start to leverage the Incident Feature more in the future. The goal is to export the Post Mortems of Opsgenie based Incidents into our Confluence space with the same layout as manual created Post Mortem pages from none Opsgenie Incidents.

To archive this, we would like to modify the default given template in the "**Key points section**" to match the current sections we use in our current Post Mortems without having to copy \& paste the section headlines every time.

So far I could not find any option to do that.


Answers:
author: John M
body: Hi [@mkurde](/t5/user/viewprofilepage/user-id/5340329) ,

At the moment it's not possible to modify the post-mortem templates, however we do have a popular feature request for this, which you can follow and upvote here:

<https://jira.atlassian.com/browse/OPSGENIE-239>


Tags: cloud
How to unsubscribe or unwatch a service in Opsgenie?
Asked by Kai Dong:

After you subscribe or watch a service, there isn't an option to unsubscribe or unwatch that service.

I've only found documentation on how to subscribe: <https://support.atlassian.com/opsgenie/docs/subscribe-to-a-service/>

Is there anyway to undo this?


Answers:
author: John M
body: Hi [@Kai Dong](/t5/user/viewprofilepage/user-id/5338614) ,

You can stop watching the service by going to the 'Services' page and clicking the 'eye' icon (which will only show on services you are already watching):

![2023-10-13_17-04-57.png](https://community.atlassian.com/t5/image/serverpage/image-id/286315iB240D4C8A5FEF09B/image-size/large?v=v2&px=999 "2023-10-13_17-04-57.png")

Or you can go to the individual service page and click the 'stop watching' option:

![2023-10-13_17-04-18.png](https://community.atlassian.com/t5/image/serverpage/image-id/286316iE1E9A581AFDD5C63/image-size/large?v=v2&px=999 "2023-10-13_17-04-18.png")

comments: author: Kai Dong
body: Thanks for the reply.

How do you unsubscribe a team from a service?


author: John M
body: Navigate to Teams \>\> select the team that's subscribed to the service \>\> Services \>\> click 'Unsubscribe from service'

![2023-10-18_18-32-49.png](https://community.atlassian.com/t5/image/serverpage/image-id/287078i85D1D6B24B585C96/image-size/large?v=v2&px=999 "2023-10-18_18-32-49.png")


author: Kai Dong
body: Thank you. It would be nice if these instructions where in a documentation somewhere.


author: John M
body: [@Kai Dong](/t5/user/viewprofilepage/user-id/5338614) - I think there were some slight changes around services in the UI that may not be documented. If I can't find this in our current docs, I'll go ahead and add an article with instructions for this in the community.
Disabling alerts after Ack
Asked by ori gal:

Hello,

How can I turn off all the triggered alerts for every activity on the JSM ticket (comments, assignments, etc.)?

I don't want to have any alerts after the first acknowledgment of the ticket.

Thanks!


Answers:
author: Brennan Kiely
body: Hello!

Could you provide some screenshots of the alerts you're receiving so we can get a better idea of what changes you need to make?

Thanks!
How to integrate OpsGenie or Jira Servicemanagement with Atlassian's Statuspage
Asked by Alex Ziegltrum:

Hey ?

we want to get the fastest possible information, when something goes wrong in the Atlassian Cloud products. Therefore we want to integrate the Atlassian status from <https://status.atlassian.com/> into Jira or OpsGenie.

There are different options to achieve that. One scenario could be, to have as many automation rules, as there are status pages to subscribe to with a dedicated webhook and create / update tickets using this way.

Another scenario could be to use the native integration within OpsGenie and have as many integrations as there are status pages to subscribe to with a dedicated webhook.

Would anyone like to share experiences or best practices on how it was done within your use case?

That's highly appreciated.

Cheers, Alex


Answers:
author: John M
body: Hi [@Alex Ziegltrum](/t5/user/viewprofilepage/user-id/5102308) ,

All of Altassian's Statuspages are published publicly, so you can select them and all of their components from within Opsgenie external services, which will allow you to automatically create alerts when any Atlassian service has an outage. Here are the instructions for setting up external services:

<https://support.atlassian.com/opsgenie/docs/manage-external-services/>

comments: author: Alex Ziegltrum
body: Hi [@John M](/t5/user/viewprofilepage/user-id/4625213)

thanks for the link, I haven't come across this page yet. I'll try it out.

So, is this also a recommendation, to monitor the Atlassian statuses with OpsGenie vs. creating JSM tickets by the webhook call?


author: John M
body: I wouldn't necessarily say it's recommended over using JSM, it really depends on exactly what you're trying to do.


Tags: status

statuspage
When new relic created the alerts, alerts were not generated in Opsgenie via newrelic V2 integration
Asked by Zhancheng Zhang:

I completed configurations of opsgenie integration with New Relic. But when new relic created the alerts, alerts were not generated in Opsgenie via newrelic V2 integration. The notification logs show that the notification was send to Opsgenie via webhook. Please help me to fix it.


Answers:
author: John M
body: Hi [@Zhancheng Zhang](/t5/user/viewprofilepage/user-id/1396325) ,

When an alert is not created, if the payload reaches Opsgenie, the debug logs will usually tell you why. Here are guides on how to use the debug logs and troubleshooting alerts not being created:

[How to solve Opsgenie issues using the debug logs](https://community.atlassian.com/t5/Opsgenie-articles/How-to-solve-Opsgenie-issues-using-the-debug-logs/ba-p/2433250)

[Integration not creating Opsgenie alert](https://community.atlassian.com/t5/Opsgenie-articles/Integration-not-creating-Opsgenie-alert/ba-p/2070678)


Tags: cloud
It is possible to notify any user even if it is not on call?
Asked by julia.gropo:

We have different teams and sometimes these teams are in the same group in Opsgenie due to the shared rotation schedule we have, but there are critical alerts we need help from other person who is not on call to solve. I wonder if it is possible to notify this other person using the app to use the features like critical alerts/calls/sms/email etc.


Answers:
author: Dave Mathijs
body: Hi [@julia.gropo](/t5/user/viewprofilepage/user-id/5338538) welcome to the Atlassian Community!

You can [override an on-call schedule](https://support.atlassian.com/opsgenie/docs/override-an-on-call-schedule/)


Tags: cloud
Installing OpsGenie plugin into VMware vCenter Server Appliance 6.7
Asked by Keith Obsniuk:

Good afternoon,

I'm attempting to integrate the OpsGenie plugin into our vCenter VCSA, however, the instructions are not really making sense to me.

I've downloaded the RPM and will be able to install it, my issue lies with configuring the alerts to go to OpsGenie.

The instructions on this page: [Integrate Opsgenie with VMware vCenter Server Appliance \| Opsgenie \| Atlassian Support](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-vmware-vcenter-server-appliance/) say to click the 'vSphere vClient' and select actions, but that doesn't really make sense to me. Is it asking about the vCenter server? Datacenter? ESXi Hosts?

Next, during Alarm configuration, as I was attempting to configure this, the only options I have are to Run a Script, not to Run a command.

I do have vROPs available to me. Any suggestions or help would be great. I haven't been able to find anything on YouTube as far as installation instructions go for this.

Many thanks,

Keith


Answers:
author: Skyler Ataide
body: Hey there Keith!

Referring to the [VMware documentation on setting an alarm in the Vsphere Client](https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-monitoring-performance/GUID-E30ED662-D851-4230-9AFE-1BBBC55C98D6.html), it looks like you will need to access the html based Vsphere client in order to create the alarm. From the html based Vsphere client, you should be able to select a vCenter Server to create the alarm for, and then select **Configure\>\>Alarm definitions\>add.** During the alarm configuration, I believe you should be able to use the "[Run a script](https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-monitoring-performance/GUID-E30ED662-D851-4230-9AFE-1BBBC55C98D6.html#:~:text=SNMP%20traps.-,Run%20scripts,-To%20run%20scripts)" option in place of "Run a command" to input the command that uses the vcsa2opsgenie path. Hopefully this helps to provide a starting point, please let me know if you have questions here or are still unable to create the alarm.

comments: author: Keith Obsniuk
body: Sorry for such a late reply. I got opsgenie installed and have set up a test alert for vmotions, however, not seeing anything.

Gonna check firewalls and update.


author: Skyler Ataide
body: Hey Keith,

Thanks for your reply! If you are still having trouble creating alerts from VMware after checking the firewalls, would you please be able to raise a support ticket [here](https://support.atlassian.com/contact/#/) so that our support team can take a closer look into your configuration?


author: Keith Obsniuk
body: Hey, sorry again for a delay, I've opened up a ticket since we still aren't getting alerts.


Tags: cloud
Setup a reoccurring maintenance schedule in OpsGenie
Asked by Curtis Eveleigh:

As most organisations, we have regular maintenance work such as server patching and OS updates that are performed on a regular basis.

Is it possible to set up a reoccurring schedule for a team/globally? e.g. every first/second/third/last Saturday of the month or every other month between x times etc.


Answers:
author: Brennan Kiely
body: Right now, we don't have an option to set up recurring maintenance in Opsgenie, but we have an open feature request for this:  
<https://jira.atlassian.com/browse/OPSGENIE-451>

The closest option right now would be to use our API to enable/disable policies (similar to what a maintenance policy does) and set up a cron job or something similar to do this on a set interval.

<https://docs.opsgenie.com/docs/alert-and-notification-policy-api>

comments: author: Curtis Eveleigh
body: Thanks [@Brennan Kiely](/t5/user/viewprofilepage/user-id/2275653)

I've voted in favour for the feature request 451.

That's a good point regarding the API. Will do some testing and see what I can get out of it.


author: J Conners
body: [@Brennan Kiely](/t5/user/viewprofilepage/user-id/2275653)How would you suggest setting up a patch management process with Opsgenie in concert with JSM Premium? Is Atlassian planning to continue support for Opsgenie? It seems there isn't much going on with enhancements/new features.


author: Brennan Kiely
body: [@J Conners](/t5/user/viewprofilepage/user-id/4973258) - We have an option to connect BitBucket to Opsgenie to track deployments:

<https://support.atlassian.com/opsgenie/docs/use-opsgenie-with-bitbucket-cloud/>

<https://support.atlassian.com/opsgenie/docs/map-bitbucket-repositories-to-opsgenie-services/>


author: J Conners
body: Hi [@Brennan Kiely](/t5/user/viewprofilepage/user-id/2275653) - That was not what I meant. Let's say we have filtered notifications/alerts from a security alert subscription service. We identify a few alerts that should be added to our regular application update schedule--not emergency, but should be a normal or even standard change. How can we do that with Jira Service Management premium and Opsgenie alerts filtering?


author: Brennan Kiely
body: [@J Conners](/t5/user/viewprofilepage/user-id/4973258) - You can set up an integration between JSM and Opsgenie to create JSM tickets for the security alerts coming into OG.

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/>

You can add filters on the integration to only create JSM tickets for certain alerts in OG.