youngmon/atlassian-qna huggingface dataset:
OpsGenie to Webex Integration
Asked by Shivaprasad:

Team - I won't see any documentation for integrating the OpsGenie APIs with Cisco Webex. Can we get any reference links/ documentation for guiding us.


Answers:
author: Egor
body: Hey Shivaprasad,  

Thanks for reaching out to Atlassian Community!   

May I ask you please to elaborate a bit more about your situation and what are you trying to integrate? The idea is that at the moment there's no documentation on our side on how to integrate Opsgenie API with Cisco Webex.   

Having more info would help here.   

I'm looking forward to hearing back from you.   

Best Regards,  
Egor


Tags: cloud
Is it possible to create an alert based on alerts?
Asked by Darren Sunley:

I currently have a working setup where Dynatrace runs a bunch of synthetic monitors and they are tied in to OpsGenie to fire alerts to a Slack channel when the monitors fail.

However, given that this relates to an IAM solution then we've actually got a lot of different DT monitors for different applications that we protect. At the moment, if ANY application is down (whether it's for a problem or for scheduled maintenance) then an alert if triggered... which is fine, but it means that on-call staff might get called out for one app's scheduled maintenance that they didn't tell us was happening.

Is it possible to create a hierarchical/composite sort of alert that says "if you get alerts from more than 2 different DT monitors then create an alert"?? The desire is then to only call the on-call guys when multiple apps are having problems (i.e. a much more lijkely indication that the IAM infrastructure has a problem, rather than just a particular app).

Ideally we would leave the existing alerts in place, but just send them to Slack for information only, whereas the overarching alert would trigger a call to the on-call phone to alert the on-call person immediately (who could then see the Slack alerts for more detail on which apps are experiencing issues).


Answers:
author: Tom Russell
body: [@Darren Sunley](/t5/user/viewprofilepage/user-id/4877853) we're in a similar situation with one of our application clusters. We get alerted on a node-by-node basis, but want to escalate to a higher priority alert if multiple nodes are having problems. We're just starting to work on a solution, but the two strategies we plan to look at are:

* Leverage the alias field and notification policies to suppress alerts unless multiple come in with that same alias within a set period of time.
* Suppress the alerts for n minutes. Have an OEC running that:
  * watches for that alert and monitors for multiple to come in
  * Closes the individual alerts and creates a new alert with a higher priority and links to the closed individual alerts

I'm not sure what we'll go with, and I don't know what level of Opsgenie you're running (and its capabilities), but that's just a couple of ideas.

comments: author: Darren Sunley
body: Hi Tom - thanks for that!

I've got a support ticket open too and they've suggested Deduplication and Notification Policies, which sounds like your first suggestion (relating to the alias value).

I'm busy trying to work that through with them, but hopefully it'll get me there. If I figure it out I'll come back and give you an update!
Exclude Alert Description on Alert Close (Slack)?
Asked by Matt Jones:

We have a Datadog -\> Opsgenie integration, and have fairly verbose "notes" that are sent along with the alert to direct our engineers on next steps for any alert.

When the alert fires, this works great! Opsgenie gets the description and forwards it to the on-call engineer, and the post it makes to slack includes the notes that we've written.

When the alert closes, it seems that Datadog sends the same note along with the closure, and Opsgenie "updates" the slack post with the note content- which is just the same as it was before. It's kind of ugly in slack- we get the "system closed alert" message, which is nice. But immediately after get a "System added note" with a potentially big block of text- which as I mentioned is a repeat of the "when in alarm" instructions.

Can I configure the opsgenie-slack integration to not send notes on alert closure?

From the datadog side, I can reduce the size of the note by encapsulating it with {{#is_alert}} tags, but that only partially reduces the size of the post-close note.


Answers:
author: Nick H
body: Hi [@Matt Jones](/t5/user/viewprofilepage/user-id/5051624) ,

It sounds like Opsgenie is adding a note when closing the alert? Hope I'm understanding that correctly.

By default, the Datadog integration adds the templated message as a note when the alert is closed. You should be able to remove this, or clear a note from being added when the alert closes under the Close Alert action(s):

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

Note that screenshot is of the [Advanced tab](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of the integration, and this is only available on the standalone Opsgenie Standard and Enterprise plans, as well the JSM/O Premium and Enterprise plans.

comments: author: Matt Jones
body: Yeah, it seems we are on the Essentials plan, and I don't have a settings page that looks like that. Is this something that is intentionally withheld from the Essentials plan?

As far as I can see- I can only admin the Datadog integration from the Team page- not the general settings page.


author: Nick H
body: The Advanced tab isn't offered on the Free and Essentials plans. You'd have to upgrade to Standard or Enterprise for this functionality. To review what is/not included in each plan, check out our pricing page:

<https://www.atlassian.com/software/opsgenie/pricing>

Besides upgrading, there isn't a workaround since the templated message is added as a note when an alert is closed by default.


author: Matt Jones
body: Thanks for the info


Tags: cloud

slack
Can we set up email templates to communicate during an incident?
Asked by staci.cavalcante:

I would like to be able to set up email templates in OpsGenie like we do incident templates. This will give us the ability to communicate quickly.


Answers:
author: Nick H
body: Hi [@staci.cavalcante](/t5/user/viewprofilepage/user-id/4990901) ,

Sounds like you are hoping for some form of mass notifications - which Opsgenie does not support any longer. This was an older feature, but has since been deprecated.

Like you mentioned, leveraging incidents / templates might be the closest thing Opsgenie has to this functionality.

comments: author: staci.cavalcante
body: Can the incident templates be used in Slack?


Tags: cloud
Display Rotation on Schedule
Asked by Nadia Marina Ramasawmy:

Is it possible to know / display what rotation a team member is in ?

Apart the on-call where I set incident alerts , I need to schedule windows and Linux monthly pathing assignments,

Some of the engineers are part of the Windows patching and part of the Linux patching team


Answers:
author: Nick H
body: Hi [@Nadia Marina Ramasawmy](/t5/user/viewprofilepage/user-id/5051429) ,

Opsgenie does not have a display feature to show which rotation(s) a user is in besides viewing the rotation in the UI, or running some sort of [GET using the API](https://docs.opsgenie.com/docs/schedule-rotation-api#get-schedule-rotation).

When you click into a user from within the UI, you can view which schedule(s) they are a participant of:

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

Then review the schedule(s) either in the All Schedules tab, or the Who is on call tab:

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


Tags: cloud
incident investigation with github/argocd?
Asked by Jonatan Pilak:

I know that incident investigation could work with gitlab/bitbucket but there is no mention about github or argocd.

On the other hand I saw that there are integrations with github and argocd, yet not sure if events from those will be also taken into consideration while trying to investigate incidents?

Regards,

Jonatan.


Answers:
author: John M
body: Hi [@Jonatan Pilak](/t5/user/viewprofilepage/user-id/5051400)

The Github integration does not include incident investigation. GitLab has a [seperate integration](https://support.atlassian.com/opsgenie/docs/investigate-incidents-with-gitlab/) for incident investigation. The [Github integration](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-github/) includes the following functionality:

* When a pull request is created in your repository in GitHub, it creates an alert in Opsgenie.

* When an issue is created in your repository in GitHub, it creates an alert in Opsgenie.

* When a push is made to your repository in GitHub, it creates an alert in Opsgenie.

* When a pull request is closed in your repository in GitHub, it closes the alert in Opsgenie.

* When an issue is closed in your repository in GitHub, it closes the alert in Opsgenie.

comments: author: Jonatan Pilak
body: Thanks [@John M](/t5/user/viewprofilepage/user-id/4625213) for confirmation.

I guess same applies for ArgoCD integration (<https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/opsgenie/>), right?

Are there any plans for 'separate integration for incident investigation' in case of github/argocd - gitops in general?


author: John M
body: [@Jonatan Pilak](/t5/user/viewprofilepage/user-id/5051400),

That is correct - ArgoCD just uses a [generic API integration](https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/).

I don't know if there are plans for 'separate integration for incident investigation' in case of github/argocd but at this point, nothing has been announced.


Tags: cloud

continuous-delivery

github
alert grouping
Asked by Pierre Kelbert:

Is opsGenie able to group a same alert issued from several sources?

If in a cluster for example, several nodes have a problem with the network, is it possible to group all the alerts into one while keeping the information of which node is impacted?

I've looked at the alias of an alert, but I don't think the value should be shared between multiple sources.

At this point, I think that it is not the responsibility of opsGenie to handle this logic but more to a tool like AlertManager (in front of opsGenie), am I right?

Thanks for your help!


Answers:
author: Muhammad Zeeshan
body: Hey Pierre,

As per the deduplication capabilities of Opsgenie, you can indeed deduplicate alerts from several integrations into one as long as they have the same alias and are open. You can learn more about alert deduplication here: <https://support.atlassian.com/opsgenie/docs/what-is-alert-de-duplication/>

So to implement what you want you will have to configure the integrations to trigger alerts with the same alias when they are from the same cluster for example and the impacted node name can be added as a note. This is because when alerts are deduplicated, the added notes on it are shown separately for each alert and not merged into one.

Hope this helps and feel free to let us know if you have any further queries.

Best regards,
Escalation notifiation
Asked by Amornthep Jeasirijaroenwong:

Can Opsgenie escalation notification to external user (Out of agent Jira service management) ?


Answers:
author: Mona Singh
body: Hello there,

This is Mona and I'm here to help :slightly_smiling_face:

I understand that you would like to escalate alerts to the external user (non-JSM agents).  
Could you please help me with more details regarding your expected workflow and instance details, I'll be happy to help you here?

* Is this Opsgenie instance a JSM-O (JSM bundled Opsgenie)?
* Could you please elaborate a bit more on what "escalation notification" mean here?
* Would you mind sharing a detailed description of your expected workflow?

Please let us know if you have any follow-up questions.

Thanks,  
Mona Singh
Is there a way to close the alerts in BULK using API?
Asked by Agrawal Shashank:

Hi, I have some alerts being fed into Ops-Genie but there are times when there are 100s of alerts OPEN without being acknowledged. Is there a way to close them using API call [CLOSE API](https://docs.opsgenie.com/docs/alert-api#close-alert).

I tried to do it and I was able to close one single alert but how can i close alerts in bulk based on the source from where they are originating OR may be a text in the message. Something like if the alerts message contains a text "Splunk", then close all of the open alerts with that text.

Best Regards,  
Shashank


Answers:
author: Nick H
body: Hi [@Agrawal Shashank](/t5/user/viewprofilepage/user-id/5019698) ,

Since the Close Alert API requires an identifier to determine which alert to close, and is limited to the possible values of **id** , **tiny** and **alias** - it's not possible to bulk close alerts through the API.

#### Workaround: {#toc-hId-176842678}

Within the Alerts tab - create a query on these types of alerts, select multiple at a time, and bulk close them that way.

You may need to scroll down through the page so more alerts populate, then you can select more than 25 alerts at a time:

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

I just opened a feature request for this functionality you can follow, watch and vote for here:

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

If there is the need to close thousands of alerts at once, please open a ticket with Opsgenie support here: <https://support.atlassian.com/opsgenie/>

comments: author: Agrawal Shashank
body: Thanks [@Nick H](/t5/user/viewprofilepage/user-id/2540930) I thought the same that there won't be any way to close the bulk alerts using the API. Though It would be good to have that feature so it can be done programmatically instead of doing it via GUI.

For now I have closed them by selecting them in bulk from GUI.

Thanks for the response.
OpsGenieClient Object giving error.
Asked by Ali Raza:

I'm getting started with OpsGenie Api in Java, but I get the error attached below while creating the object.  

Below is the code:

```
try
{
  OpsGenieClient client = new OpsGenieClient();
  AlertApi alertApi = client.alertV2();
  alertApi.getApiClient().setApiKey(apiKey);
  CreateAlertRequest request = new CreateAlertRequest();
  request.setMessage("my testing alert is here");
  SuccessResponse response = alertApi.createAlert(request);
  System.out.println(response);
  Float took = response.getTook();
  String requestId = response.getRequestId();
  String message = response.getResult();

}
catch (ApiException t)
{
  t.printStackTrace();

}
```

<br />

<br />

![error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/219142i7CDBD4D00F8A3310/image-size/large?v=v2&px=999 "error.PNG")


Answers:
author: Ali Raza
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) Kindly help me out.

comments: author: Ali Raza
body: Its fixed.


author: Nick H
body: Hi [@Ali Raza](/t5/user/viewprofilepage/user-id/5046357) ,

What was the problem / issue you were encountering?


Tags: cloud
Jira Service Management with Essential want to stand up OpsGenie standard
Asked by Amanda Poush:

If I have Jira Service Management with Essential and want to stand up OpsGenie standard does it have to use the same licensing as Jira Service Management? Or is the only way to accomplish this a separate Atlassian instance?


Answers:
author: Nick H
body: Hi [@Amanda Poush](/t5/user/viewprofilepage/user-id/1813777) ,

Sounds like you might have a JSM subscription which gives your a JSM/O equivalent of an Opsgenie Essentials plan - which leads me to believe you have a JSM Standard subscription.

For transparency JSM/O subscriptions translate to these Opsgenie standalone plans:

* JSM/O Free = Opsgenie standalone Free
* JSM/O Standard = Opsgenie standalone Essentials
* JSM/O Premium or Enterprise = Opsgenie standalone Enterprise

To upgrade your JSM/O plan, you have to upgrade your JSM subscription entirely.


author: Alex Koxaras _Relational_
body: Hi [@Amanda Poush](/t5/user/viewprofilepage/user-id/1813777)

I don't think that there is a limitation of what plans you want for each product. However, each product have different features according to the respective plan.
On Call Report Filters in Opsgenie
Asked by Howard Nedd:

We are currently running a pilot to use on call reports for the business.

I simply want to know how to use these filters to determine the days and hours I need.  

For example:  

If I want an overview from the last month, I know that I can set it to August but if I want to filter on the entire week (Monday to Sunday) and include 24 hours per day. How do I set that into the filter for the days and hours?  

![reportsops.png](https://community.atlassian.com/t5/image/serverpage/image-id/218651i159AB63157339DDE/image-size/large?v=v2&px=999 "reportsops.png")

<br />

Thanks  

Regards  
Howard


Answers:
author: Ashish Shetty J
body: Hi Howard,

Thanks for reaching out to the Opsgenie team.   
As I understand, you wish to query the on-call times per user for all 7 days of the week using the Opsgenie analytics section.

You should be able to get this information by setting the filter **Business day** to 1-7 and the **business hour** to 0-24.  
View global on-call times per user: <https://support.atlassian.com/opsgenie/docs/view-global-on-call-times-per-user/>

Hope this helps!

Regards,  
Ashish


Tags: report
Rest api to run plan of specific plan branch.
Asked by Sagar Rajput:

Is there any rest api to run plan of specific plan branch, I know there is api ("/queue/{projectKey}-{buildKey}?stage\&executeAllStages\&customRevision") to run plan of default branch in Bamboo rest api documentation (<https://docs.atlassian.com/atlassian-bamboo/REST/8.1.1>).


Answers:
author: Eduardo Alvarenga
body: Hello [@Sagar Rajput](/t5/user/viewprofilepage/user-id/4774973)

Welcome to Atlassian Community!

You can use the same REST endpoint to trigger a Plan branch. Bamboo adds a number to the end of the build key, for example, if the default plan key is PROJ-KEY, the first branch created after that will be PROJ-KEY0, so to trigger that branch, you just need to hit the \<bamboo-url\>/rest/api/latest/queue/PROJ-KEY0

You can find the Plan Branch key in the Bamboo UI by checking the address bar.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Sagar Rajput
body: Hi [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) , thanks for the reply, instead of getting branch key from address bar, we can get it from rest api provided in the documentation and then we can use rest end point \<bamboo-url\>/rest/api/latest/queue/PROJ-KEY0 to trigger a Plan branch.
Can you automatically approve a bamboo agent
Asked by William Flow:

I have an ansible playbook that creates a ec2 ubuntu instance then install the appropriate packages and copies the bamboo agent jar files and installs it, all works but I have to login to bamboo and approve the agent, is there a way to do this via my script maybe thru an api call?

Thanks in advance!


Answers:
author: Vani
body: Hi William,

Thank you for reaching out to Atlassian Community!

You can enable automatic approval of the agent by clicking**'Disable Remote agent authentication'** on the Agents page.

And if you want to secure it you could use the Security token verification for remote agents by clicking **'Enable Security token verification'.**

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/185316iA076986A6A9FCF33/image-size/large?v=v2&px=999 "image.png")

eg:

```
java -Dbamboo.home=/opt/Bamboo/ java -jar atlassian-bamboo-agent-installer-8.0.1.jar http://lb:8085/agentServer/ -t ef33d88bbc981a975f81e4e27b03b7aa4345cbdb 
```

I hope this is helpful.

Please let us know if you need any help on any issues.

Thanks and Regards,

Vani


Tags: agent
Test case count mismatch - Bamboo Allure report integration
Asked by v-prasanna.chowdry:

Integrated Allure report to bamboo server and consumed in the projects. I see tests cases showing is doubled. In my example, I see suite name pytest and Tests.UI.login_search. When i execute the same in local machine, i see only Tests.UI.login_search. Any inputs on this?![temp.PNG](/t5/image/serverpage/image-id/185080iAE4897FF1EEB2505/image-size/large?v=v2&px=999 "temp.PNG")


Answers:
author: v-prasanna.chowdry
body: Found the issue. It is in the bamboo configuration. Thanks.
REST API to create, branch and run a plan.
Asked by Rafer Gluyas:

I'd like to use git hooks (pre-push) to trigger a build on bamboo, but using specific branch and repository that it would get from the call. I've got the draft of that working, however it isn't clear to me if I can create a plan from a specified repo, create a branch on that plan, and then run the plan, all from the REST API.

This is related to <https://community.atlassian.com/t5/Bamboo-questions/How-can-i-create-and-run-plan-branch-by-rest-api/qaq-p/1262969> however that only touches on what I'm trying to achieve, and it doesn't have a satistactory answer either


Answers:
author: Joshua Bremer
body: For anyone who stumbles across this, I found something that worked for me.  

```
curl -k \
--user "username:password" \
-X POST \
-d "stage&executeAllStages" \
https://bamboo.dexcom.com/rest/api/latest/queue/PD-C8S8769
```

Credit goes to here: <http://www.rndblog.com/bamboo-rest-api-how-to-trigger-a-plan-and-waiting-for-a-result/>


Tags: rest
how can i run remote commands on ec2 instance using bamboo
Asked by Pavan Babu:

I have created a pipeline where im able to ssh into my ec2 instance using .pem file (using script task) , but when im trying to build a docker container on the server but its getting built on the bamboo server instead. So can anyone help me in achieving this.


Answers:
author: Alexey Chystoprudov
body: Look at SSH task, it allows to run commands at remote host via SSH connection
The app null is not installed or disabled.
Asked by Gaurang Patel:

I have installed the bamboo and restored the backup from old. Now when I change the SVN repository then I am getting the following error.

Can you please immediately help


Answers:
author: Vani
body: Hi Gaurang,

I am Vani from Atlassian Team would like to check on this issue.

We understand that you are getting the error "The app null is not installed or disabled." when you are changing an existing SVN repository.

In order to investigate further could you please show us the error (full stack trace) that you are getting in the*atlassian-bamboo.log* file while you are doing the above?

Also, check whether you could see Subversion as a system app in the Manage Apps.

Please let us know the Bamboo version that you have installed.

Thanks

Atlassian APAC