youngmon/atlassian-qna huggingface dataset:
Email alert Contents
Asked by PR:

Is there a way of select the fields that are sent in an email alert.

PR


Answers:
author: Nick H
body: Hi [@PR](/t5/user/viewprofilepage/user-id/4251699) ,

Can you clarify a bit on what fields you need in the alert?

On the Standard and Enterprise plans, integrations have an Advanced tab that allows you to customize what data populates in each alert field:

![emailcomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133226iA593AE9116597B6E/image-size/large?v=v2&px=999 "emailcomm1.jpg")![emailcomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133227i731BCBCD9A233B80/image-size/large?v=v2&px=999 "emailcomm2.jpg")

Each integration's draggable fields will be unique to the integration, and what fields are available / being sent. The Email integration is limited to what is shown in my second screenshot.

With the Email integration specifically - along with the limited fields - we'll see a lot of customers using either string processing or regex to extract data, and populate the alert fields with something more custom:

<https://docs.opsgenie.com/docs/string-processing-methods>

<https://docs.opsgenie.com/docs/regular-expressions>

Hope this helps! Let us know if you have any additional questions or issues.


Tags: cloud

email
Where can I find logs?
Asked by Diana Koshy:

I set up an API integration in OpsGenie so that an external process can send alerts to OpsGenie when it fails. The external process failed, but there was no OpsGenie alert generated. I'm trying to debug where things went wrong - is it that the alert never got to OpsGenie or was it that my filters for the integration discarded the alert? Are there logs that would contain this information? Ideally, I would want to see the traffic that came to OpsGenie through this integration BEFORE any of the filters/conditions are applied.


Answers:
author: Nick H
body: Hi [@Diana Koshy](/t5/user/viewprofilepage/user-id/581153) ,

The Logs tab can be found under the Settings tab here:

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

By default only Owners and Admins have access to the logs, while Users do not.

If Opsgenie did receive the API request, then it would be logged here! And if received with no alert being created, Opsgenie would at least log an error with something like "Skipping incomingData, no matching actions found."

But if no request is found in the logs, we'd have to assume it was never received by Opsgenie.

Here's our logs doc as well: <https://docs.opsgenie.com/docs/logs>

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

comments: author: Nick H
body: Here's an example of that error log I mentioned above, along with a log showing that Opsgenie received the request:

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


author: Diana Koshy
body: Thanks, Nick. Looks like I don't have access to see them. I'll contact our internal admins and see if I can get to the bottom of it with their help. I appreciate your quick response :)


author: Brady Mortensen
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) i can't find what this log means. I have been editing alerts within integration and within opsgenie notification settings. I have matched our priority alert system within jsm to match our overall jira priority. I have changed the verbiage to match exactly or contains, still nothing.

Substituted fields does not contain \[message\] even though it is required!


Tags: cloud
How does an Integration's "Close Alert" action work?
Asked by Jonathan Ballet:

Hello,

I was trying to find a way to automatically close some alerts that are sent to our account "Default API": these alerts are correctly coming on this endpoint and I know how to create the appropriate filters, but then I struggle how the actions of the integration are supposed to work:

From ["Integrations Framework - Action Processing" documentation](https://docs.opsgenie.com/docs/integrations-framework#action-processing):

* Ignore: *"the webhook data \[...\] will be ignored completely"* This one is pretty clear.
* Create Alert: If data hasn't been ignored by the previous action, this action will create new alerts. Depending on the filters specified, the actual content of the alert can be customized. Do I understand correctly?

Then, for the last 3 "Acknowledge Alert", "Add Note", "Close Alert", I'm not sure how to understand them. There's this notion of "alias", which I guess is this kind of "global identifier" that was set when the alter was created just before.

But then, I don't understand how these actions are triggered. By default, their filter is "Match all alerts" but I didn't see my alerts being closed, acknowledged or having a note added automatically. I'm a bit lost on how I should understand / configure these :)

Ultimately, I tried to configure a new "Close" action which filters match the fields of the alert I wanted to automatically close, but it didn't work at all. I suppose, as this was a brand new alert, it didn't have this "alias", and only the "Create" action was executed, but then I'm not sure how to execute the other actions...

Some help / clarification would be greatly appreciated!


Answers:
author: connor mcguane
body: So what might be happening is all of your alerts are matching the Create Alert action in your Default API. I would try make sure that your Create and Close have mutually exclusive filters.

Also, can you explain more on what data is coming in that says "close this alert". Im sure its something in the pay load like a flag or keyword.


Tags: cloud
Custom_variables from Icinga2 alerts?
Asked by Ji?? Len?k:

Hi,

we are trying to integrate Icinga2 alerts into OpsGenie.

As the infrastructure behind is quite complex, we choosed to use custom_variables to categorize hosts and services.

1) Is it possible to include all custom_variables in alerts sent from Icinga to Opsgenie via official plugin?

2) Is it possible to use custom variables in Alert policies?


Answers:
author: Ronnie Kingston
body: Hi Ji??,

Custom variables can be sent to Opsgenie via the method defined in our documentation [here](https://docs.opsgenie.com/docs/icinga2-integration#opsgenie-plugin-configuration-in-icinga2) .

When you send the arguments, it can be parsed at the integration settings and stored into alert's extra properties as key-value pairs. You can further use this key-value pairs in Opsgenie alert policies.

![Image 2021-03-15 at 1.20.00 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/134384iE0D9CBCB6355947A/image-size/large?v=v2&px=999 "Image 2021-03-15 at 1.20.00 pm.png")

Please reach out to us via chat support or via support.atlassian.com and we can assist further if you need any clarifications.

comments: author: Darryl Lee
body: Hi Ji??,

Thanks for your great feedback and sharing on the ticket you've open with us for the same topic.

This has been achieved by the combination of the details that Ronnie attached above and the following steps you've experimented.

**Solution**

1. Created new data field in Icinga2, assigned to host, set field value.

<br />

2. Edited */home/opsgenie/oec/opsgenie-icinga2opsgenie.conf*,

to add the custom arguments as a key-value format in the "arguments" dictionary object.

For example:

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

<br />

3. Restart Icinga.

4. Added property from payload as new extra property on Create  
Host/Service Alert.

As instructed, you may parse custom arguments by adding   
*_payload.customArgName*   
to wherever is needed on the input fields.  
For more information about using raw parameters please visit the [Dynamic Fields document](https://docs.opsgenie.com/docs/draggable-fields).

For example:

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

Thank you very much.

Kind regards,  
Darryl Lee  
Opsgenie Support


Tags: cloud
Why "CloudWatch Confirmation events" arrive on the Default API?
Asked by Jonathan Ballet:

Hello,

I configured a new CloudWatch Events integration by following the documentation in [Amazon CloudWatch Events Integration.](https://docs.opsgenie.com/docs/amazon-cloudwatch-events-integration)

On AWS, when the a new topic subscription is created, CloudWatch automatically sends a "Confirmation Events" to Opsgenie, which creates a new alert for that.

However, although I configured the SNS topic to send the alert to the CloudWatch Event integration endpoint, with its own specific API key, the CloudWatch Confirmation event gets processed by the "Default API" integration, always.

I couldn't find any information about that in the documentation above, and there's only a slight note [Tags for Built-in Alerts](https://docs.opsgenie.com/docs/default-api-integration#tags-for-built-in-alerts) in the Default API Integration page.

I wanted to have a special notification policy for this specific event and I originally configured it on the CloudWatch integration, but I realized that wasn't working... Am I missing something here?


Answers:
author: Nick H
body: Hi [@Jonathan Ballet](/t5/user/viewprofilepage/user-id/1323897) ,

This is how Opsgenie handles test alerts / confirmations from CloudWatch (and some other integrations) - so the connection can be tested with the actual integration processing taken out of the equation, but ensures there is a connection with Opsgenie.

Moving forward real alerts created by CloudWatch will trigger through the integration. If you see different, please let us know.


Tags: cloud
Add a document to an Incident record
Asked by J?rgen Holmstr?m:

Hi.  
I have created an Incident Record and status is solved . Is it possible to add for example a workinglog.txt as an attachment to the Incident record ?

Right now I can not find a solution to my question in the application

If it works would be very nice.

Br and Thanks


Answers:
author: Connor Eyles
body: Hi [@J?rgen Holmstr?m](/t5/user/viewprofilepage/user-id/4284902)

Hope you are well :)

At the moment it is not possible to add files to Incidents. However, we do have an open feature request for this one (OGS-571) I'll add you as a listed requestor for this one.

At the moment you only have options to add files to Alerts and Postmortems. A possible workaround for you would be adding it to the Postmortem seeing as this is a solved Incident.

Thanks,  
Connor

comments: author: Brandon Dow
body: Please add this!

Thanks


author: Kina Smith
body: Please add this. I'm in the middle of an incident and have relevant files and can't add them.
Is there a way to set up a calendar month rotation?
Asked by Tracy Green:

Hello,

My team uses a calendar month rotation for off hours support -- January, February, etc. Is it possible to do this with an OpsGenie rotation or is a 4 week rotation the closest we can get?

Tracy Green


Answers:
author: Nick H
body: Hi [@Tracy Green](/t5/user/viewprofilepage/user-id/4288523) ,

Setting rotations to the calendar month is not possible at this time. Like you mentioned, the closest thing to this would be configuring a custom rotation to 4 weeks, or 30 days, or something like that.

Otherwise you could create a rotation for each month with the on-call user, and have the Starts on / Ends on dates align with the month that user is on-call:

![monthlycomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133234i651CB54E1464409A/image-size/large?v=v2&px=999 "monthlycomm1.jpg")![monthlycomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133233iC2E5758F02F6F95D/image-size/large?v=v2&px=999 "monthlycomm2.jpg")![monthlycomm3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133236i431BCC6C5404C106/image-size/large?v=v2&px=999 "monthlycomm3.jpg")![monthlycomm4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/133235i65C63F60088C8BDC/image-size/large?v=v2&px=999 "monthlycomm4.jpg")

We do have an open feature request for this that I've added you to. The ticket to reference is TARDIS-480; *Ability to Define Monthly Rotation Type in Schedules*.

Since our tickets are not public, we'll reach out if/when there are any updates. Let us know if you have any other questions, or if we can help with anything else!

comments: author: Adam Korpi
body: Is there any update on TARDIS-480*?*Being able to define monthly rotations would be extremely helpful for us as well.


author: Nick H
body: Hi [@Adam Korpi](/t5/user/viewprofilepage/user-id/3388647) ,

No update as of now on the monthly rotation feature request. If/when we have an update, we'll reach out here!


author: Ji?? Janda
body: Hello,

we need to define Monthly Rotation Type in schedules too.

Please, give priority to this development requirement.

Thanks

George


author: Nick H
body: Hi [@Ji?? Janda](/t5/user/viewprofilepage/user-id/4168702) ,

It's not possible to define a Monthly rotation type at this time. I just opened a public feature request that can followed here: <https://jira.atlassian.com/browse/OPSGENIE-462>

The more votes / watchers on a feature request will typically gain more traction with engineering to implement a feature request.
Opsgenie Integration outgoing flow
Asked by Justi Lawson:

We have a Standard Jira Service Management plan. We are looking to utilize Opsgenie not only for our Service Management projects but also add the SolarWinds Integration. (specifically, 'Solarwinds Orion NPM')  
When adding the integration, I receive 'This integration's outgoing flow does not work as your subscription plan does not support it'

What exactly is the outgoing flow?

What are the plans/pricing to go up to a tier plan that would support this?![Capture.PNG](/t5/image/serverpage/image-id/132236iA5CB4179C5E8199D/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Nick H
body: Hi [@Justi Lawson](/t5/user/viewprofilepage/user-id/3550462) ,

I believe we're communicating through an open ticket, but wanted to share an answer to the Community who might also be curious about your ask!

"Outgoing flow would be actions taken in Opsgenie that reflect in other systems such as SolarWinds. This flow is restricted on your current plan: <https://docs.opsgenie.com/docs/integrations-framework#outgoing-integrations>

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

Your current plan - JSM Standard - is the equivalent of Opsgenie's Essentials plan.

For other plan equivalencies, JSM Premium \~ Opsgenie Enterprise. Outgoing flow is included in JSM Premium.

JSM Standard should not limit integrating with SolarWinds though. Your Opsgenie account will still be able to receive SolarWinds requests and create Opsgenie alerts. You could also use those alerts to create issues in JSM."

comments: author: Arty Sidorenko
body: Hi, regarding this definition - "Outgoing flow would be actions taken in Opsgenie that reflect in other systems such as SolarWinds" - can you provide a practical real-world example of such an action. It's not clear to me from this sentence.

Thanks in advance.


author: Nick H
body: Hi [@Arty Sidorenko](/t5/user/viewprofilepage/user-id/3808436) ,

An example of outgoing flow might be something like this;

Solarwinds creates an Opsgenie alert \>\> a user acknowledges the Opsgenie alert \>\> this action / outgoing flow then also acknowledges the alert in Solarwinds.

\^ Granted what's explained above might fall more into our [bidirectional functionality](https://support.atlassian.com/opsgenie/docs/what-are-the-integration-types-and-actions/#hardBreak) - the actions taken in Opsgenie that are sent to external systems are the outgoing flow.

Depending on the integration, a user can take an action on an alert in Opsgenie, and have it reflected in other systems so the operation doesn't need to be completed in both.

Another good outgoing integration example is our Webhook integration which pushes information via an URL endpoint when actions are taken on an alert.
Alerts API - Add Attachment
Asked by Robert Williams:

Has anyone been able to successfully upload a file to an alert using powershell?

If you have some sample code you could share, I would greatly appreciate it.

I've looked online for similar solutions, but so far nothing has worked.

The file is a text file.

Thanks!!


Answers:
author: Connor Eyles
body: Hey [@Robert Williams](/t5/user/viewprofilepage/user-id/4276640)

Here is the script on how to do it :)

```
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "GenieKey xxxxx-xxxxx-xxxx")
$headers.Add("Cache-Control", "no-cache")
$headers.Add("Content-Type", "multipart/form-data")
```

```
$multipartContent = [System.Net.Http.MultipartFormDataContent]::new()
$multipartFile = 'test.txt'
$FileStream = [System.IO.FileStream]::new($multipartFile, [System.IO.FileMode]::Open)
$fileHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data")
$fileHeader.Name = "file"
$fileHeader.FileName = "test.txt"
$fileContent = [System.Net.Http.StreamContent]::new($FileStream)
$fileContent.Headers.ContentDisposition = $fileHeader
$multipartContent.Add($fileContent)
```

```

$body = $multipartContent
```

```

$response = Invoke-RestMethod 'https://api.opsgenie.com/v2/alerts/673/attachments?alertIdentifierType=tiny' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json
```

![Image 2021-03-12 at 3.16.50 pm](https://p-25foddj.b0.n0.cdn.getcloudapp.com/items/YEuX2951/6c7d46b9-1acd-44a8-b44f-84525b7de143.jpg?v=ffcb0ae65f9b6fb51ecd273e83574ce9)

Thanks,  
Connor


Tags: cloud
How to receive a call
Asked by Jon-Roar Selenius:

When we receive a call from Opsgenie, an automated voice says you have to press a key, to accept the call.

Is there a way to turn off this, so that you don't have to do this key press to accept the call?


Answers:
author: Nick H
body: Hi [@Jon-Roar Selenius](/t5/user/viewprofilepage/user-id/4281493) ,

It's not currently possible to turn this off; press any key to accept the Opsgenie call. But we do have an open feature request for this that I've added you to.

That ticket for reference is OGS-758; *Change Incoming Call call accepting method*. Since our tickets are not public, we'll reach out directly if/when there are any updates.

Let us know if we can help with anything else!

comments: author: Rhia Rodriguez
body: Hi [@Nick H](/t5/user/viewprofilepage/user-id/2540930) ,

My question is related to this. I wasn't able to setup the call routing can you help me with this please?


Tags: cloud
Alerts API - Close Alert
Asked by Robert Williams:

I've made a few successful API calls using the same integration key (Get Alerts, Update Description, Add Tag), but while trying to CLOSE ALERT, I get "The remote server returned an error: (400) Bad Request"

Any idea what I could be missing here?

**\<SNIP\>**

**PS C:\\\> $closeAlertURL**   
**<https://api.opsgenie.com/v2/alerts/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-xxxxxxxxxxxxx/close>**

**PS C:\\\> Invoke-RestMethod -Method POST -Uri $closeAlertURL -Headers $global:OpsGenieAPIHeader**

**Invoke-RestMethod : The remote server returned an error: (400) Bad Request.**   
**At line:1 char:1**   
**+ Invoke-RestMethod -Method POST -Uri $closeAlertURL -Headers $global:O ...**   
**+ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~**   
**+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) \[Invoke-RestMethod\], WebException**   
**+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand**

**\<SNIP\>**


Answers:
author: Robert Williams
body: I figured out the problem.

Even though I'm not using any of the OPTIONAL fields in the JSON body, I MUST have an empty JSON body passed with the request.

Here's what worked for me:

**\<SNIP\>**

**PS C:\\Windows\\System32\> $closeAlertURL**   
**<https://api.opsgenie.com/v2/alerts/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-xxxxxxxxxxxxx/close>**

**PS C:\\\> $post_message = @{}**   
**$post_message_JSON = $post_message \| ConvertTo-Json**

**PS C:\\\> Invoke-RestMethod -Method POST -Uri $closeAlertURL -Headers $global:OpsGenieAPIHeader -Body $post_message_JSON**

**\</SNIP\>**


Tags: cloud
Hi! Our team asks if Opsgenie's Incoming call routing features are USA based or work in EU as well?
Asked by Stella Marie Alice Bakhoff:

Thanks


Answers:
author: Prince Nyeche
body: I think you need to elaborate a little more here.


author: Erik Vanderstraeten
body: We have incoming call routing in a EU Opsgenie account;

So it works.

<https://docs.opsgenie.com/docs/incoming-call-routing#instructions-to-add-incoming-call-in-opsgenie>


Tags: cloud
Create alert from Jira Service Management with critical priority
Asked by Jorge V:

Hello everyone, I'm trying to create automatic Opsgenie alerts from Jira Service Management, actually this is working but alerts are always creating with **P-3 Moderate** priority, and I wish this could respect the priority that is setted from JSM


Answers:
author: Nick H
body: Hi [@Jorge V](/t5/user/viewprofilepage/user-id/4256027) ,

This similar community post should help with configuring this: <https://community.atlassian.com/t5/Opsgenie-questions/How-do-I-match-JSM-to-Opsgenie-priority-level/qaq-p/1583386>

Since JSM priorities do not match with Opsgenie's out-of-the-box, multiple Create Alert actions that filter on the JSM priority can be added to map to the corresponding Opsgenie priority.

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


Tags: alert

automation

cloud

integration

jira-service-management
Downgrade openjdk to version lower than 255
Asked by MahaAmin:

I am facing exactly the problem stated [here.](https://confluence.atlassian.com/bamkb/bamboo-fails-to-configure-embedded-database-in-environments-with-java-update-version-higher-than-255-1018269728.html)

I do not know how to downgrade openJDK 1.8_265 to a version lower than "_255"??


Answers:
author: Jeyanthan I
body: Hi Maha,

I believe you've stumbled onto a bug that is already fixed in Bamboo 7.1.

* [Bamboo crashes with H2 db and Java update version higher than 255](https://jira.atlassian.com/browse/BAM-21018).

You have the following options to mitigate this problem:

* Upgrade Bamboo to the latest version 7.1.1 by following [this upgrade documentation](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html) as this version has a fix fir this problem already.
* Install a supported version of JDK less than the update 255 (by downloading a binary from [AdoptOpenJDK archive (Hotspot JVM)](https://adoptopenjdk.net/archive.html?variant=openjdk8&jvmVariant=hotspot)) and start Bamboo with this JDK.

Once successful, you may switch to using an [external database](https://confluence.atlassian.com/bamboo/connecting-bamboo-to-an-external-database-289276815.html) as using embedded database is not recommended for production instances as explained[in this page](https://confluence.atlassian.com/bamboo/bamboo-embedded-database-824351237.html).

Hope that helps.

Cheers,  
Jey

comments: author: MahaAmin
body: This solved the problem. Thank you