youngmon/atlassian-qna huggingface dataset:
OpsGenie x ServiceNow integration - Table different from standard (Incident)
Asked by Michael Daramola:

I want to alerts on a different table (MID Server) and alert when their down I've tried creating a new business rule and updating the script for it but having trouble running a test alert also updating the form in Opsgenie.

My question is is there a specific way to do this ?


Answers:
author: Talar Pavlovic
body: Hi there Michael,

Thanks for writing to Community, I'm Talar from the Atlassian Opsgenie support team, happy to help!

Let me start by sharing our general support documentation for the ServiceNow integration here: <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-servicenow/>

From your original question, I suspect that you are referring to a very specific use case - if you could provide more context we could see what solutions may be possible. It may be beneficial to open a support ticket if adding more context will require you to share any sensitive info - You can do this via <https://support.atlassian.com/contact/>

Kind regards,  
Talar


Tags: cloud
Hearthbeat alert details access
Asked by Romain Bariatti:

Hello,

We can see that alerts created from hearthbeat contains 2 details keys: "**Heartbeat** **Name** " and "**Last Received At** ".  

We try to access those keys from the JIRA intergation to pass them into the JIRA issue. However we have an error triggered when trying to access them such as "{{details.Hearthbeat Name}}":  
Substitution error: Exception: Substitution of h4. Details h5. Hearthbeat name {{details.Heartbeat Name}} for key \[description\] failed: Encountered " Name}" at \<unknown template\>\[line 3, column 20\] Was expecting one of: "\[" ... "}" ...  

<br />

<br />

We tried to add the fields within quote, convert them to CamelCase without success.  

How can we use those two keys \`?  

Thanks


Answers:
author: Talar Pavlovic
body: Hi there Romain,

Thanks for writing into Community, I'm Talar from the Atlassian Statuspage support team, happy to help!

As you mentioned, the fields aren't coming through in camelcase, meaning the expected "{{details.heartbeatName}}" isn't pulling out the data required. I have raised this with our Engineering team for them to take a look at.

However, we can still extract the data required via some String Processing Methods. Documented [here](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/), we have a few options we can use.

Having a look at the fields you'd like to extract you can use the following:

**Heartbeat Name:**

`{{details.extract(/.*/).substringBetween("Heartbeat Name=",",")}}`

**Last Received At:**

`{{details.extract(/.*/).substringBetween("Last Received At=","}")}}`

Hope this helps!  
Talar


Tags: cloud
Setup Opsgenie in Grafana 10 as contact point = respones code 422 unprocessable entity
Asked by mike krauss:

We have Grafana 10 setup and are now setting up Opsgenie. In grafana we are setting up a contact point to send alerts to OpsGenie, that is all setup but when we try to send a test alert we get webhook response status 422 unprocessable Entity. Any Ideas ?

![image.png](https://files.slack.com/files-pri/TGNA6QJ2V-F05QKM6K6AU/image.png)


Answers:
author: Alex Schittko
body: I found in Grafana 10.0.3 this was broken with the same symptoms

In Grafana v10.1.4 (a676a96d91) its fixed


author: John M
body: Hi [@mike krauss](/t5/user/viewprofilepage/user-id/3266860) ,

I would double-check to make sure you've saved the integration in Opsgenie before you send the test. If that isn't the issue, the debug logs can usually help point you to the issue. Here is an article on using the debug logs:

<https://community.atlassian.com/t5/Opsgenie-articles/How-to-solve-Opsgenie-issues-using-the-debug-logs/ba-p/2433250>

comments: author: mike krauss
body: The integration is already setup in OpsGenie. I checked the logs section after I tried to test the alert in Grafana and there is nothing in the OpsGenie log.![Screenshot 2023-08-28 155158.png](https://community.atlassian.com/t5/image/serverpage/image-id/277636iD38CF7C866658F57/image-size/large?v=v2&px=999 "Screenshot 2023-08-28 155158.png")![Screenshot 2023-08-28 155316.png](https://community.atlassian.com/t5/image/serverpage/image-id/277637iE3DF87B68B2CF91B/image-size/large?v=v2&px=999 "Screenshot 2023-08-28 155316.png")


author: John M
body: [@mike krauss](/t5/user/viewprofilepage/user-id/3266860) Can you please open a support ticket so we can take a look at your account configuration?

<https://support.atlassian.com/contact/#/>


Tags: cloud
What I should do to get rid of an error 'Cannot save ssh. New rotation responder'
Asked by Yuta.Kobayashi:

When I tried to cresate new team like below, an error message poped up.

I don't understand what it means,

Could you tell me what i should do?  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/277457i7CD894ED12BE616D/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Wei Wung
body: Hi [@Yuta.Kobayashi](/t5/user/viewprofilepage/user-id/5303036)

Thank you for reaching out! The error "Cannot save sch\[edule\]. New rotation responder ... ++introduces a **loop**++" usually happens if the participant in the schedule points back to the same team which has a routing rule/escalation policy/schedule that pointed to this schedule, thereby introducing an endless loop.

I would suggest tracing which escalation policy/policies is pointing to this schedule and work backwards to the routing rules and Team that the routing rule is from so that you can trace the whole notification flow **from Team -\> routing rule -\> escalation policy -\> schedule -\> the participants within the schedule**, making sure that the participants doesn't loop back to the same Team that started this notification flow.

Generally, the participants are individual on-call users, but it really depends on your use case.

Please feel free to reach out to via Chat if you need any assistance tracing and/or resolving this.

Best Regards,

\~Wei


Tags: cloud
Alert is already acknowledged, Alert couldn't be acknowledged
Asked by akshay rawat:

For a single alert we are getting multiple escalation calls by saying "alert is acknowledged, alert can't be acknowledged."


Answers:
author: John M
body: Hi [@akshay rawat](/t5/user/viewprofilepage/user-id/5302838) ,

Where is it saying the alert can't be acknowledged? Can you post a screenshot of where you are seeing that message?

It sounds like the alert may already be acknowledged or in a state where it can't execute that action.
Replacing a person in rotation
Asked by Marck Lorentsen:

Hi,  

Does anyone know a method to completely replace a person in rotation, while maintaining the original rotation.  
If i remove a person in rotation, and then add a different one, the whole rotation shifts forward, and add the new person as the last.  

I know how to do overwrites etc.  

![2023-08-25 11_48_32-Opsgenie - Schedule and 5 more pages - Work - Microsoft? Edge.png](/t5/image/serverpage/image-id/277134i072274CB57741D93/image-size/large?v=v2&px=999 "2023-08-25 11_48_32-Opsgenie - Schedule and 5 more pages - Work - Microsoft? Edge.png")   

**Marck Lyager Lorentsen**


Answers:
author: Wei Wung
body: Hi [@Marck Lorentsen](/t5/user/viewprofilepage/user-id/5301681)

When replacing a participant in a rotation, you would want to ***drag*** the new participant that you added to the same position as the one being replaced.

The other field to consider updating is the "**Start on** " date of the rotation. I would recommend **updating the "Start on" date of the rotation to the start date of the first participant's most recent shift** so that the rotation can be recalculated to maintain the same shift changes.

Hope that helps!

\~Wei


Tags: cloud
how can we close all the alerts from opsgenie console in one go
Asked by prashant:

how can we close all the alerts from opsgenie console in one go, like now i am allowed to only close 1000 alerts at a time. 100000 alerts have been piled up and its diffcult to delete in batch


Answers:
author: Wei Wung
body: Hello [@devops](/t5/user/viewprofilepage/user-id/5300518)

Thank you for reaching out! A similar question was [**posted here**](https://community.atlassian.com/t5/Opsgenie-questions/How-do-I-bulk-close-amp-delete-a-huge-number-of-alerts/qaq-p/1115738) in 2019 was answered in 2022. The suggestion was to write a custom script leveraging the **[Alert API](https://docs.opsgenie.com/docs/alert-api)** or you can use the **[Opsgenie lamp](https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie)** in your scripting although in either case you would need to take **[pagination](https://docs.opsgenie.com/docs/pagination)** into account. The idea is to create a script to list the alerts via API, then loop through each one and delete it via API. Someone graciously shared a link to an "*opsgenie_cleaner*" python script they wrote.

One way test or to limit the scope of the deletion is to use an apiKey from a team-based API integration so that you would only be able to delete the alert belonging to that team. Once tested to your satisfaction, then use an apiKey from a global API integration, that is one, not assigned to any team to be able to act on all alerts.

Since you have more than the hard limit of 20,000 alerts, **[another community post](https://community.atlassian.com/t5/Opsgenie-questions/Opsgenie-Alert-API-422-Sum-of-offset-and-limit-should-be-lower/qaq-p/1576684)** suggests that you would want to break your searches into smaller batches with something like the **createdAt** criteria.

Yet another related and informative community post from 2022 is **[this one](https://community.atlassian.com/t5/Opsgenie-questions/Script-to-extract-alerts/qaq-p/2111248)**.

As for me personally, not fluent in scripting or prompt engineering, my preference would be to use the Web UI, although as you pointed out you can only Close (or Ack) (up to) 1000 alerts at one time using "**[bulk actions on alerts](https://support.atlassian.com/opsgenie/docs/perform-bulk-actions-on-alerts/)**" and even then, each batch of 1000 alerts takes quite a few minutes to complete before you can execute the bulk action on the next batch of 1000.

On the plus side, it only takes a few seconds to kick off the bulk action and you can do something else in that 20 or so minutes before kicking off the next batch of 1000 alerts. So for 100000 alerts, it would take a hundred batches that you would literally run over the course of a few days (although with a script, the run time may be cut to a third but it would take time to write your custom script and test it).

I hope the above points you in the right direction.

Best Regards,

\~Wei
Opsgenie: Extra Properties (Security hub payload)
Asked by Radzhiv Apasov:

Hello all,

I'm trying to extract information about findings' resources from the "Message" field and present it in a human-readable format. Specifically, I want to retrieve details from the "findings" array, specifically the "Resources" object within it.

![security hub.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/276501iCA40E53249CE791B/image-size/large?v=v2&px=999 "security hub.JPG")

Link : [Integrate Opsgenie with Amazon Security Hub \| Opsgenie \| Atlassian Support](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-amazon-security-hub/)

I tried {{_parsedData.findings.substringBetween("Resources=\[{","}\]") }}

and I got "Partition=aws, Type=AwsRdsDbCluster, Details={AwsRdsDbCluster={StorageEncrypted=true, ClusterCreateTime=2023-08-22T12:53:42.289Z, ActivityStreamStatus=stopped, HttpEndpointEnabled=false, EngineMode=provisioned, Port=5432, DbClusterResourceId=cluster-fjfjfgfjgfjgf, VpcSecurityGroups=\[{Status=active, VpcSecurityGroupId=sg-087086795565858"

so very close, is it any other way to get this as a regular text not json? **I actually need only Id within findings--\>Resources** or actually info I Provided will work to.

I'm seeking guidance on the correct approach to achieve my goal of making the alert more human-readable and extracting information from the "Message" field's "findings" section. Any assistance or insights you can provide would be greatly appreciated.


Answers:
author: Tejaswi G
body: Thank you for reaching out to the Atlassian Community. Unfortunately cannot dot parase the arrays in the payload. We recommend you to further fine-tune your filter condition used in the subsctring function to get the ID from the findings or your can also use the extract function and pass a regex to get the required field. You can refer our documentation for more details.

<https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/>
Where can I find documentation for the gitlab integration
Asked by Brian Mbogo:

I'm trying to understand what all the options for alert filtering mean. The reason is, I'm setting up alerts based on pipelines, for which there are no pre-made alert filters so I have to use some other clever filtering and policies.


Answers:
author: John M
body: Hi [@Brian Mbogo](/t5/user/viewprofilepage/user-id/5299913) ,

Here is the integration for GitLab:

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-gitlab/>

One option for filtering alerts when there are no predefined filters is to use policies.

While policies cannot prevent alerts from being created they can update alert values, or automatically suppress or close alerts.

For this method, you would first use the advanced integration options to map the custom fields to Opsgenie fields, then use a policy to filter on those Opsgenie fields.

comments: author: Brian Mbogo
body: Thanks for your reply [@John M](/t5/user/viewprofilepage/user-id/4625213). I understand the use of policies, but I was looking for explanations of the pre-defined filters, i.e what does each one mean/which gitlab webhook trigger/object does it come from? Is there somewhere I can get this information?


author: John M
body: Hi [@Brian Mbogo](/t5/user/viewprofilepage/user-id/5299913) ,

The filters can come from any of the events. To see which event which fields are sent for each event, you would want to refer to the Gitlab documentation for webhooks:

<https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html>

There are some preconfigured filters for certain events. As an example, the default "create alert for push event" action has a pre-configured filter of "issue confidential equals \[blank\]" which means the "issue confidential" field is sent with the "push" event.

![2023-08-27_13-29-54.png](https://community.atlassian.com/t5/image/serverpage/image-id/277413i225AD1761B4E8164/image-size/large?v=v2&px=999 "2023-08-27_13-29-54.png")

To see all of the fields sent in the "push" event, you would refer to the gitlab section of the webhooks doc for the push event and refer to the sample payload:

<https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#push-events>


Tags: cloud
Can an alert policy use a disabled escalation policy and/or on-call schedule?
Asked by Kim Barry:

I am using Maintenance policies for scheduled holidays and have corresponding alert policies that point to special escalation policies and/or on-call schedules. However, I would like to disable the on-call schedules (and possibly the escalation) that are not used during BAU. But I don't know if alert policies will use a disabled escalation and on-call schedule. I know could test it but I thought I would check if anyone knows.


Answers:
author: John M
body: Hi [@Kim Barry](/t5/user/viewprofilepage/user-id/5099748) ,

Policies that route to disabled escalations or on-call schedules would not be used. You would see a message like this in the alert log:

![2023-08-22_15-28-58.png](https://community.atlassian.com/t5/image/serverpage/image-id/276535i22DD77208AEC81EC/image-size/large?v=v2&px=999 "2023-08-22_15-28-58.png")


Tags: cloud
How to put checkout revision number of a build in ftl email template
Asked by Abhishek S:

Hi

I want to put revision number (current checkout revision which is used to build) in notificationCommonsHTML.ftl in templateOuter macro before the line "was successful" or "failed". (line 15)   

I tried ${bulidSummary.revision} but no luck.

FYI: I use SVN repo and corresponding revision number for build

Please help me with this, as documentation for modifying email templates is abysmal.


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@Abhishek S](/t5/user/viewprofilepage/user-id/4887871)

I don't know where you got that from, but ${bulidSummary.revision} seems like a typo (bu**li** d vs. bu**il**d) and should probably be ${buildSummary.revision}!?

Other than that I'm not aware of structurally better docs besides what I referenced in my [related answer](https://community.atlassian.com/t5/Bamboo-questions/Re-How-to-show-executed-build-plan-variable-values-in-no/qaq-p/687149/comment-id/16553#M16553), though the Freemarker section in [Freemarker and notification templates](https://confluence.atlassian.com/bamboo/freemarker-and-notification-templates-289276983.html#Freemarkerandnotificationtemplates-Freemarkerexamples) *might* provide a few more clues (note the "#list buildSummary.commits as commit" and "Revision: ${commit.guessChangeSetId()?html}" constructs).

Good luck,  
Steffen

comments: author: Abhishek S
body: Hi [@Steffen Opel _Utoolity_](/t5/user/viewprofilepage/user-id/781567)

Thanks a lot for the reply. Actually, I tried the correct form of ${buildSummary.revision} (without any typo) but no luck.

> (note the "#list buildSummary.commits as commit" and "Revision: ${commit.guessChangeSetId()?html}

The above code looks like, it only works if we have any new commits. Is there any particular package which provides revision number without including any commits?

I think this is pretty simple use case where I want to have the checkout revision inside ftl template. If any package like com.atlassian.\* exposes this variable please let me know which package is that and how to use it where I can create a variable and use the functions it provides.

Please help me with this.  
Thanks in advance !


author: Abhishek S
body: Can anyone please suggest an idea/answer?
Support for latest version of Git with Bamboo 8.2.6
Asked by Lam Zheng Xiong:

Can i check if it is supported? or do i have to upgrade bamboo to a newer version.


Answers:
author: Lam Zheng Xiong
body: Found my own answer..

[Supported platforms \| Bamboo Data Center and Server 8.2 \| Atlassian Documentation](https://confluence.atlassian.com/bamboo0802/supported-platforms-1103432705.html)
Bamboo specs: "No plan is linked to this project"
Asked by Bob Rzadzki:

I have a build plan and a deploy plan, both created with Bamboo Specs, and I'm having trouble getting the deploy plan connected to the build plan.

In my build specs, I define the plan like this:

```
plan:
  project-key: PLEX
  key: WEB
  name: Web Application
```

And in the deploy specs, I define the deployment like this:

```
deployment:
  name: Plex App - Web
  source-plan: PLEX-WEB
```

Both specs are imported successfully, and both plans are created as expected. However, the deploy plan's configuration page tells me "No plan is linked to this project. Update the project configuration before deploying a release."

What's going on here?


Answers:
author: Bob Rzadzki
body: Answering my own question -- this doesn't seem to be a common problem but who knows, maybe someone else/future-me can reuse this solution.

**What I think happened:**

Originally, I had created the build plan through the UI. When I started setting up the deployment with specs, I referred to that build plan's name and key. Then I replaced the build plan with one created through specs, but with the same keys. I'm thinking Bamboo "de-linked" them somewhere that shuffle.

**What worked:**

1. I deleted both the build and deploy projects. No problem because I'm recreating them with specs.

2. With each repo, I did the following, starting with the one for the build project:

a. Turned off "Scan for Bamboo Specs"; waited a few seconds and turned it back on.

b. Re-scanned the repo and corrected permissions errors as they were reported.

This successfully created first a new build project and then a deploy project with a plan correctly linked to the build. Ultimately a case of "just give it a kick."
Can I setup a build plan to be run after a successful deployment of another plan?
Asked by colinkirk:

I am trying to configure some E2E tests to run in a build plan after a successful deployment of a project. I don't see a way to restrict that trigger to ONLY successful deployments. I don't want these tests to run when its is very likely they will just fail and spam out notifications. There seems to be a way to have that configured for a build plan's success, but maybe not a deployment plan's? Maybe I am missing something...


Answers:
author: Eduardo Alvarenga
body: Hello [@colinkirk](/t5/user/viewprofilepage/user-id/4681067)

We have some feature requests to allow the *Approval* functionality to work as designed.

* [BAM-15082 - Enable environment deploy button only after the build is approved](https://jira.atlassian.com/browse/BAM-15082)
* [BAM-21566 - Deployment build approval](https://jira.atlassian.com/browse/BAM-21566)

For now, we recommend you read the following KB article that suggests an approval workflow for deployments:

* [How to implement an Approval workflow for deployments](https://confluence.atlassian.com/bamkb/how-to-implement-an-approval-workflow-for-deployments-1108485290.html)

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Can't find Bamboo Server download in archives - only offers Data Center; where can I get 8.2.4 Srvr?
Asked by Dan Webb:

The download archives of Bamboo 8.2.4 only offer Data Center. I need Server. Where can I find Bamboo 8.2.4 download for Server?


Answers:
author: Eduardo Alvarenga
body: Hello [@Dan Webb](/t5/user/viewprofilepage/user-id/3161182)

The licence you choose will control what Data Center features are enabled. You can download the binaries available on the Atlassian Download page safely and just apply the Server licence to it.

Here's a feature comparison in case you want to know more about Server x Data Center features:

* [Bamboo Server and Data Center feature comparison](https://confluence.atlassian.com/bamboo/bamboo-server-and-data-center-feature-comparison-1063170546.html)

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: Dan Webb
body: Hi, Eduardo.

I wasn't clear where I'm starting from. I have a Bamboo 6.8.0 Server installation I am migrating and upgrading to Bamboo Server 8.2.4. (both are on Windows Server). I'm looking specifically for the Bamboo Server binaries, not the Data Center binaries.

v/r,

Dan Webb


author: Eduardo Alvarenga
body: Hello [@Dan Webb](/t5/user/viewprofilepage/user-id/3161182)

There is no such thing as Server binaries or Data Center binaries. **There is a single binary**. The difference lies in the Licence you add to it when installing as it will control what features are available.

If you have a valid and active Server licence, just use in on the 8.2.4 binary and it will work fine.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


author: Dan Webb
body: Thank you! Your last reply about there being only one binary for bot Data Center and Server should be on the download page! This worked great, thanks.


Tags: server