youngmon/atlassian-qna huggingface dataset:
Link Service Management or Work Management Jira tickets to Postmortem
Asked by Carsten H?usler:

How can I link Service Management or Work Management Jira tickets to a postmortem in Opsgenie. I only have the option to link tickets from software projects. Is there a way to enable it or create a feature request for Atlassian to develop it?


Answers:
author: Samir
body: Hi [@Carsten H?usler](/t5/user/viewprofilepage/user-id/4014940) ,

You can link JSM tickets to the *incident* in Opsgenie...

e.g.

![2021-08-13_15-33-03.png](https://community.atlassian.com/t5/image/serverpage/image-id/155934i930DC227DA15EBC0/image-size/large?v=v2&px=999 "2021-08-13_15-33-03.png")

To do this you will want to setup the connection between your JSM instance and Opsgenie according to [this doc](https://support.atlassian.com/opsgenie/docs/use-opsgenie-with-jira-service-management-cloud/).

This will require your Opsgenie account to be connected to the same Atlassian site that your JSM subscription is on. Once that connection is setup, you should see the option on your alerts/incidents in Opsgenie to link Jira Service Management requests.

One thing to note is only JSM issues from the ITSM template project in JSM will be able to be linked.

There isn't a way to link issues directly to the postmortem in Opsgenie, they can only be linked to alerts/incidents currently.

Hope this helps! Let me know if you have further questions.

Thanks,

Samir

comments: author: Carsten H?usler
body: Hello Samir,  

yes, we are using this function already. However, we would like to link other service management tickets to the postmortem. Will this be implemented to the postmortems as well? I don't see why the postmortem should only be limited to software projects. You can add both types to the incident. So why is the same not available for postmortems?


author: Samir
body: Hi [@Carsten H?usler](/t5/user/viewprofilepage/user-id/4014940)

I've gone ahead and entered a feature request for the option to create/link JSM issues from the postmortem.

I think the idea behind having the option to create/link Jira Software issues there is because when completing the postmortem, there may be tasks or other more "software" related issues to complete that are needed to for remediation reasons, i.e. to ensure that this type of incident doesn't happen again. So these would be more JSW type issues rather than tickets in JSM, since they generally require code/infrastructure related changes.

However I can certainly understand the desire to want to be able to create/link JSM issues form the postmortem as well, so I have submitted a feature request for this.

Thanks,

Samir


author: Carsten H?usler
body: Thanks, Samir. I hope this will be implemented soon.


author: Carsten H?usler
body: Hello Samir,  
could you please share a ticket link for the feature request? Is there an ETA on this yet?  
Thanks for your help!


Tags: cloud

post-mortem
Can one alert be used to close other alerts ?
Asked by Neil Benton:

I am using Kapacitor to generate alerts based on thresholds. Usually Kapacitor will call the API to close an alert when the threshold is no longer breached, alerts are closed by the {{alias}} field.

There are occasions when Kapacitor will not close the alert, namely when it stops receiving data. In these occasions I would like to generate a new alert that will close any open alerts that meet a criteria, say matching tags.

Is this possible ?

Thanks in advance.


Answers:
author: Neil Benton
body: I have solved this using the following method. In my monitoring script in Kapacitor I generate two alerts based on different events, but each alert is given the same identifying key, this means that in opsgenie they get the same alias so alert deduplication works.

The first alert is generated if my threshold is breached. so if cpu\>80.

the second alert is generated when we are receiving data so we get a warning the system is working alert. This seems counter intuitive, but I set a tag on the alert IGNORE=true. I have an ignore filter in my opsgenie integration that looks at this tag and it isn't processed.

When we stop receiving data the second alert flips to the OK state and a alert close event is generated, this does not have the IGNORE tag set and so opsgenie closes all alerts with the same alias, this includes the generated thresholds.

It is used as we are monitoring servers in a scale set in the cloud, so these servers can and do disappear at random.


author: connor mcguane
body: Firstly, I dont think there is a way to natively do this in a simple way.

But two suggestions:

1) If you are looking just to close alerts, a Notification policy could accomplish this. Simply match on tags and then auto-close after some time

2) The more complicated way would be using an OEC. This could be triggered by some subset of alerts, and then a script could be created to do any functionality you want via API

comments: author: Neil Benton
body: Thanks for the suggestions


Tags: cloud
Is there a way to hide/disable the "Create Alert" button on the main Alert screen
Asked by Edmundo Rangel:

At our company we do not want Opsgenie users to create alerts manually since all alerts will come from external monitoring systems. Is there a way we can disable the blue button "Create alert" that shows up on the main "Alerts" screen?


Answers:
author: Samir
body: Hi [@Edmundo Rangel](/t5/user/viewprofilepage/user-id/2908816) ,

There isn't a way to "hide" the Create Alert button from the alerts page in Opsgenie.

However depending on what Opsgenie plan you are on, you can create a custom role and remove the "Create Alert" permission from that role, and assign that role to the users you do not want to be able to Create Alerts from the Alerts page in Opsgenie...

e.g.

![2021-08-13_15-39-39.png](https://community.atlassian.com/t5/image/serverpage/image-id/155941i304186913C716139/image-size/large?v=v2&px=999 "2021-08-13_15-39-39.png")

If your Opsgenie account is on a ["standalone" Opsgenie plan](https://www.atlassian.com/software/opsgenie/pricing) , then you would need to have the Standard or Enterprise plan to have access to add custom roles.

If your Opsgenie account is on a [JSM plan](https://www.atlassian.com/software/jira/service-management/pricing), then you would need to be on JSM Premium, or JSM Enterprise plan in order to have access to add custom roles.

Hope this helps! Let me know if you have further questions.

Thanks,

Samir

comments: author: Edmundo Rangel
body: Samir, thank you! I will take a look at setting up a special role then. cheers!


Tags: alert
Can Opsgenie receive sms alerts similar to incoming call?
Asked by Anthony Miller:

We are looking to integrate opsgenie with some of our equipment that can send out sms alerts. Can opsgenie receive these alerts in the same fashion as you receive an incoming call integration?


Answers:
author: Darryl Lee
body: Hi Anthony,

This is Darryl, Opsgenie Support, I am here to help. ?

Glad you bring this up! It's a Yes and No to this question.

The SMS alerts are binding with the Incoming Call Routing integration, that said, ++it depends on the number you registered for Incoming Routing integration supporting this function to receive SMS or not.++

For any numbers other than Canada and the US, please reach out to us to help you complete it.

Thank you.

Kind regards,   
Darryl Lee  
Opsgenie Support

comments: author: Anthony Miller
body: Thankyou. I have reached out to purchase an sms enabled number to add into our integration list.


Tags: cloud
cannot connect on my iphone
Asked by Susie Dratwa:

I got a new Iphone but cannot log in


Answers:
author: Liam Green
body: Hi [@Susie Dratwa](/t5/user/viewprofilepage/user-id/4507538)

Welcome to the Community!

Is it a work phone? Are you trying to log into your company account?

If so, probably best to raise it with your internal IT team


Tags: cloud
How can i delete all unverified users in opsgenie via API?
Asked by Pavel Korostelev:

I have 30-40 unverified users, and delete one by one a very long time...


Answers:
author: connor mcguane
body: We actually wrote a script to do this every 6 months. When you pull down a list of all users, **verified** should be a field you could sort on from the payload (example [payload](https://docs.opsgenie.com/docs/user-api#list-user)). Then just delete that subset of users through the API.

comments: author: Pavel Korostelev
body: Hi, can you pls send an example script?


author: Hana Ku?erov?
body: Hi [@Pavel Korostelev](/t5/user/viewprofilepage/user-id/4506518) ,

welcome to the Atlassian Community!

It looks like there's REST API endpoint for this, see [here](https://docs.opsgenie.com/docs/user-api), section Delete User.

Please be aware I've never tested it myself.

comments: author: Pavel Korostelev
body: Hi [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) i need delete 40 unverified users by one click (one curl run)


author: Hana Ku?erov?
body: Hi [@Pavel Korostelev](/t5/user/viewprofilepage/user-id/4506518) ,

I don't think that's possible, I didn't find any endpoint for bulk delete.

You would probably need to:

* send GET request to get all unverified users
* go through all the unverified users
  * send DELETE request for each user
Is there an OpsGenie Sandbox?
Asked by Edmundo Rangel:

Hello,

Are any of the OpsGenie pricing tiers providing a "Sandbox" environment so we can test our integrations with external alert tools (e.g. Prometheus, Splunk) test/dev environments?


Answers:
author: connor mcguane
body: We have one. We have the "top tier" Enterprise-sized license so your mileage may vary. But we just spoke with our Opsgenie rep to get it set up. It shows up as a separate account in Opsgenie under your name. We use it for that exact scenario.

comments: author: Edmundo Rangel
body: Thanks Connor, I will follow up with Atlassian rep.


Tags: sandbox
Linking Alerts
Asked by Darren Burden:

Can you link multiple Opsgenie alerts to a single alert?


Answers:
author: Ang?lica Luz
body: Hello [@Darren Burden](/t5/user/viewprofilepage/user-id/4238545),

Thank you for reaching out to Atlassian Community!

When it comes to linking alerts on OpsGenie, it's possible to link multiple alerts to a single incident, but not alerts with a single alert.

* [Associate an alert with an incident](https://support.atlassian.com/opsgenie/docs/associate-an-alert-with-an-incident/)

Can you please let us know more details about why you need to link multiple alerts with a single one?

Please, share with us more information so we can check here if it's possible, otherwise, we can raise a feature request for that.

??Kind regards,  
Ang?lica

comments: author: Darren Burden
body: We sometimes will receive multiple alerts for a single server having issues. CPU, memory, or disk utilization. They all are related. However, may not be necessary to create a full blow incident at the time. Patching/server reboots sometime cause this behavior.


author: Ang?lica Luz
body: Thank you for the details, Darren.

Reviewing your use case, we believe that what might help is the Alert de-duplication.

You can create an alias with the name of the server, for example, so all alerts created with this alias will be grouped and there will not be a list with separated alerts.

Example: An alert for CPU issues was created for Server ABC, then another one related to memory and disk was created and it will show on the Activity log.

![Screen Shot 2021-08-05 at 15.30.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/154779iAB37CCAD946FB5C8/image-dimensions/360x338?v=v2 "Screen Shot 2021-08-05 at 15.30.27.png")

![Screen Shot 2021-08-05 at 15.31.12.png](https://community.atlassian.com/t5/image/serverpage/image-id/154782i56A3E0D0781E1E2A/image-size/large?v=v2&px=999 "Screen Shot 2021-08-05 at 15.31.12.png")

For more detailed information, please refer to the documentation below:

* [What is alert de-duplication?](https://support.atlassian.com/opsgenie/docs/what-is-alert-de-duplication/)


Tags: cloud
Cannot authenticate API
Asked by Nilan Bhattacharya:

I am trying to check if the API works.

curl -X GET "<https://api.opsgenie.com/v2/alerts/requests/40dd7940-a388-482a-bc06-1a792bf785a4-1627953015805>" -H "Authorization: GenieKey \*\*\*dd\*\*\*-766e-4209-\*\*\*\*-\*\*\*\*e598b976"

gives me: 'Could not authenticate'

I am on the free plan.

Any idea what might be going wrong?


Answers:
author: Nick H
body: Hi [@Nilan Bhattacharya](/t5/user/viewprofilepage/user-id/4500159) ,

The Get Request Status API is available on the Free plan. Make sure you are using the correct URL depending on whether your Opsgenie account is US or EU:

![reqid3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/154237iB64AA36B6D3B737B/image-size/large?v=v2&px=999 "reqid3.jpg")

So you're aware, your request shared above it to GET an alert based on the request ID (not the alert ID). For example, below I created an alert via API - which produces a request ID in the response:

![reqid1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/154234i83F9BA892B8A2217/image-size/large?v=v2&px=999 "reqid1.jpg")

I'd need to use that request ID in the Get Request Status API call:

![reqid2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/154235i1C64B2BCDDA55954/image-size/large?v=v2&px=999 "reqid2.jpg")

Otherwise, I could use the alert ID to [GET the alert](https://docs.opsgenie.com/docs/alert-api#get-alert) as well (above) with this:

<https://api.opsgenie.com/v2/alerts/91a9e9fa-e792-4840-bbb5-044cece7d224-1627996363801>

Hope this helps! Let us know if you have any other questions.

comments: author: Nilan Bhattacharya
body: I still can't get it working. Not sure why it is so difficult. I am checking with support.

Would you know how to increase log levels with Lamp?


author: Gonchik Tsymzhitov
body: Hi!

Looks like it's permit

* <https://docs.opsgenie.com/docs/service-api#create-service>
* <https://docs.opsgenie.com/docs/incident-api>

Based on that one

<https://www.atlassian.com/software/opsgenie/pricing>
Can't authenticate through AlertManager / Prometheus
Asked by Tim Davis:

Hello Im trying to set up the integration with OpsGenie through AlertManager / Prometheus. I followed several examples on the web for configuration, but errors logs say "Authentication Failed" Is there anything else I need to add to Alertmanager Config?  

unexpected status code 401: {\\"message\\":\\"Could not authenticate\\",  

Here is a sample of my alertmanager config file  

<br />

<br />

```
global:
  opsgenie_api_key: XXX
  opsgenie_api_url: 'https://api.opsgenie.com/'
route:
  group_by: ['alertname', 'cluster', 'service']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 3h
  receiver: opsgenie
  routes:
   - match:
     receiver: opsgenie
receivers:
 - name: 'opsgenie'
   opsgenie_configs:
    - send_resolved: true
      http_config: {}
      api_key: XXX
      api_url: https://api.opsgenie.com
responders:
      - name: 'My Team Support'
      type: 'team'
```


Answers:
author: Nick H
body: Hi [@Tim Davis](/t5/user/viewprofilepage/user-id/4499776) ,

I believe we spoke yesterday around the same issue, and realized the 401 was due to the wrong API key being used in Alert Manager conf. file.


Tags: prometheus
"No-team" option settings meaning
Asked by Alessandro Pistola:

Dear all,

I am trying to set up an integration via Webhook or Slack and for both I have to specify the team for which the integration will work. While reading the options under the "Team" combo-box I found the option "No team". Does this setting include all the alerts (because the integration is set for no team) or does it include all the alerts without a team?

Thanks in advance.


Answers:
author: connor mcguane
body: This is saying an incoming alert will not be assigned to a team. You will need to assign the alerts to a team somewhere else in the pipeline, either in an alert policy, manually in the alert when acked, etc.

comments: author: Alessandro Pistola
body: [@connor mcguane](/t5/user/viewprofilepage/user-id/3922071) First of all thank you for replying. Unfortunately this is not what I would like to know.

I understand your point of view but the two kind of integration I was talking about are output integrations, meaning that if an alert arrives, Opsgenie will send it through Slack (not the reverse).

I now think that the "no-team" option, in this scenario, stands for "all the alerts without a team assigned to" and not as a restriction "the integration is assigned to no-team then all the alerts will be sent through Slack"


author: connor mcguane
body: Ah, didnt realize you were referring to outgoing integrations. I think you assessment is correct then.


Tags: integration

slack

team

webhook
Notification on schedule update
Asked by ali_arslan:

In our team sometimes we have to change on call schedule due to someone going to vacation or for instance if someone leaves the team. This means the change usually shifts the schedule to different dates for everyone.

But opsgenie does not notify anyone via app or through email that there has been update in their upcoming on-call turn. This leads to people not knowing in advance and sometimes it comes as a surprise when their on-call starts.

We have looked into all notifications provided by opsgenie but we have not yet found anything for this use case.

Does anyone knows if there is a way to configure this?

thanks.


Answers:
author: Dustin Orrick
body: I am curious if your schedule starts on Monday but you change the individual notification rules to notify 1 day in advance; but limit notifications for that rule to Mon-Thur; then will it notify 3+ days prior?


author: Aleksey Myagkov
body: I second this question. When we add or remove people from the schedule, it would be nice that all participants receive a notification.


author: Hana Ku?erov?
body: Hi [@ali_arslan](/t5/user/viewprofilepage/user-id/4498700) ,

welcome to the Atlassian Community!

I believe you can to this in your profile -\> Notifications (<https://your-opsgenie/settings/user/notification>). There's section called Notification rules.

You can configure notification for action Schedule Start, something like Notify before schedule starts: 1 day

comments: author: ali_arslan
body: Hey Hana, thanks for the suggestion.

This only allows to set 1 day in advance. I think it is not ideal because people need at least a week notice to adjust their plans accordingly. E.g. If there are upcoming vacations, this won't help because it is too late to know.


author: Hana Ku?erov?
body: Hi [@ali_arslan](/t5/user/viewprofilepage/user-id/4498700) ,

I'm sorry, I'm not aware of any other way, how to do this. Maybe you can try to suggest Atlassian to also add the possibility to send notification 1 week before the schedule starts...


Tags: cloud
Not able to login to opsgenie: Account Suspended
Asked by avinash:

Hi, I'm not able to login into opsgenie, whenever I try to login into my account, I get "Account Suspended".


Answers:
author: Hana Ku?erov?
body: Hi [@avinash](/t5/user/viewprofilepage/user-id/4344374) ,

welcome to the Atlassian Community!

Please [see the answer from Andy Heinzer](https://community.atlassian.com/t5/Jira-questions/How-to-re-subscribe-to-suspended-subscriptions/qaq-p/799563) to solve this situation.


Tags: cloud
Not getting email and app notifications
Asked by Jakub Kluba:

I have OpsGenie integrated with my check_mk monitoring. I receive alerts on the web page correctly, but I'm not getting any email or app notification while all seems to be set up correctly. Team is defined with one member, escalation is set to all team members at 0m if alert is not acknowledged. I have attached two screenshots showing the configuration.


Answers:
author: Jakub Kluba
body: Once I added responder to an alert it popped up in my app. Question is how do I set it permanently? I mean add auto-responder group to any alert or incident I receive?

comments: author: connor mcguane
body: So the responder needs to be automatically added in one of two ways (that I know of). Either in the integration itself, its just a hardcoded field (or if you can control your payload of the integration it can be sent in from the alert-source). Or, a Global alert policy can match a filter against your alert, and set the responder there.


author: Jakub Kluba
body: I suppose I could do it from source. But configuring the Policy you mentioned would be much easier. Unfortunately I can't find it anywhere in the settings. I have found an article about this but it doesn't make things easier at all :/

I'm afraid that the plan I'm on is too low. According to support article:

<https://support.atlassian.com/opsgenie/docs/create-and-manage-global-alert-policies/>

the policies are available only for Standard and Enterprise.


author: Jakub Kluba
body: Got it solved just like you suggested [@connor mcguane](/t5/user/viewprofilepage/user-id/3922071), thank you. I updated the configuration on the Check_MK side. I had to go to notification configuration and input the group I wanted to be the auto-responder for the alerts.


author: connor mcguane
body: Are the alerts setting the responder correctly to the team you are a part of? A helpful screenshot would be of the alert's activity log, showing the steps it takes to (not) notify you.

comments: author: Jakub Kluba
body: I think you may be referring to this:

*Jul 29 5:43 PM system System*

*Skipping Create alert notification policies for alert because it doesn't have an owner team.*

Looks like I missed something in configuration.


author: Jakub Kluba
body: ![2021-07-29 17_45_34-Opsgenie - Profile ? Mozilla Firefox.png](https://community.atlassian.com/t5/image/serverpage/image-id/153610iDF5F27A5CB97A941/image-size/large?v=v2&px=999 "2021-07-29 17_45_34-Opsgenie - Profile ? Mozilla Firefox.png")![2021-07-29 17_45_52-Opsgenie - Enterprise Backup ? Mozilla Firefox.png](https://community.atlassian.com/t5/image/serverpage/image-id/153611i7F3D5455CD0CC4DB/image-size/large?v=v2&px=999 "2021-07-29 17_45_52-Opsgenie - Enterprise Backup ? Mozilla Firefox.png")


Tags: cloud
Team Members Usage outside of Team
Asked by Amit Kumar:

Hi -

I have a Team with a large number of users. I'm trying to identify if any of the Team members are getting Alerts that do NOT originate from the Team itself for the past few months.

Is there an easy way to accomplish this? I've been trying to look at the various Analytics data available but I haven't been able to figure out what combination of Report and Filters to set up to capture such statistics.

Thanks in advanced!


Answers:
author: Nick H
body: Hi [@Amit Kumar](/t5/user/viewprofilepage/user-id/3048874) ,

I don't believe there is an *easy* way of doing this if you have a larger team, but there should be a few ways to accomplish this through the Analytics tab, and Alert Dash.

You could run an Alert Analytics report that searches the filter for any of your team members added to alerts as Recipients, and a responder that is NOT your team (over the past few months):

![reportcomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/153419i0DAF01C5330ECB41/image-size/large?v=v2&px=999 "reportcomm1.jpg")

Or run a similar query in the Alert Dash that might search for something like:

recipients: "user.email@opsgenie.com" AND NOT responders: "Team_XYZ"

![reportcomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/153421i5C289EA44A7A33E2/image-size/large?v=v2&px=999 "reportcomm2.jpg")

To search for multiple users in the Alert Dash, your query might be:

(recipients: "user.email1@opsgenie.com" OR recipients: "user.email2@opsgenie.com" OR recipients: "user.email3@opsgenie.com") AND NOT responders: "Team_XYZ"

Hope this helps! Let us know if you have any other questions, issues, etc.

-Nick

comments: author: Amit Kumar
body: Thanks for the inspiration [@Nick H](/t5/user/viewprofilepage/user-id/2540930) - I can use the Alert List API to loop through all team members and return the results to me.


Tags: cloud