youngmon/atlassian-qna huggingface dataset:
Opsgenie alert acked when JSM issue status updated to in progress
Asked by Yinshuo:

Hi Experts

I am new to the Opsgenie and Jira Service Management.

And I am trying the Jira Service Management Integration plugin of Opsgenie.

I have succeed to create a JSM issue when Opsgenie new alert created.

I am wondered if there is a way to trigger the Opsgenie new alert's Ack'd action when the JSM issue's status is updated from Waiting for support to In progress.

Thanks.


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

That should be possible. If I'm understanding the workflow;

Opsgenie alert creates JSM issue \>\> JSM issue's status is transitioned to "In Progress" - and this should move the Opsgenie alert into an ack'd state.

If you are using the [JSM cloud integration](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/), you'd either want to add or edit an Acknowledge Alert Incoming automation rule that filters on the issue being updated + status (In progress). It might look something like this:

![jsm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/226685iDE6E1AB62593A645/image-size/large?v=v2&px=999 "jsm1.jpg")![jsm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/226684i0566C1ADD5CCD606/image-size/large?v=v2&px=999 "jsm2.jpg")

If you are using the [JSM legacy integration](https://support.atlassian.com/opsgenie/docs/use-opsgenie-with-jira-service-management-cloud/), you'd want to add or edit the Acknowledge action under the [Advanced tab](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of the integration.

Note this tab is only available on the Opsgenie standalone Standard and Enterprise plans, or the JSM/O Premium and Enterprise plans:

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

It might look something like this:

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

comments: author: Yinshuo
body: Hi Nick

Thanks for replying.

I am using the [JSM cloud integration](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/), and the workflow is as your understanding.

Opsgenie alert creates JSM issue \>\> JSM issue's status is transitioned to "In Progress" - and this should move the Opsgenie alert into an ack'd state.

The Workflow worked as your conditional setting, I think the only trip is that the JSM issue status string is "Work In Progress" in the default rule. it worked after I changed the condition string from "Work In Progress" to "In Progress".

Regards.


Tags: jira-service-management
Opsgeine incoming automation rule condition case insensitive issue
Asked by Florencio Morales Bermudez:

I'm trying to create a case insensitive condition for an incoming rule, but I'm not able to match the condition, this is my case:

I'm using the matches operator (regex) and this regex: /.\*(bulk).\*/i

As you can see

![Screenshot 2022-11-18 at 5.06.00 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/226606i245BA8190BB7920A/image-size/large?v=v2&px=999 "Screenshot 2022-11-18 at 5.06.00 PM.png")

But I can't get that working, I don't know why and I'm testing that against multiple regex tools

![Screenshot 2022-11-18 at 5.09.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/226607iCB2EC1F0FBE1EE72/image-size/large?v=v2&px=999 "Screenshot 2022-11-18 at 5.09.35 PM.png")

What I need is that no matter if it's upper or lower case, should math if the word bulk is present


Answers:
author: Nick H
body: Hi [@Florencio Morales Bermudez](/t5/user/viewprofilepage/user-id/4286198) ,

Can you adjust the condition to:

Summary *Matches (regex)* **(?i).\*(bulk).\***

Opsgenie should account for the delimiters.

\* Edited above response to be case insensitive: <https://regex101.com/r/qAggA3/1>

comments: author: Florencio Morales Bermudez
body: It worked! Thank you!
OpsGenie / Slack integration - bot messages cannot be added to incident timeline. Why?
Asked by Stuart Mingay:

Hi

We have Service Desk and OpsGenie. When we create an incident in OpsGenie we create a slack channel from the incident in order to allow us to easily "add to incident timeline", any comments or updates in slack.

Obviously the client facing service desk ticket gets connected to the slack channel created by OpsGenie, so any comments made or received on the Service Desk desk ticket get automatically posted to the slack channel.

Great!

No. Because, say the client updates the Service Desk ticket with "please close this", for example, that gets posted in slack. Good. Now you want to add this to the incident timeline in OpsGenie right? Well you can't because "Message cannot be added to the incident timeline. Bot messages are not allowed."

**Why on earth can't *any* messages in slack be added to the timeline if I want to add them? Why is there this restriction?** It has removed the major reason we moved to OpsGenie in the first place and we're seriously looking at moving back to our old process.

Thanks

Stuart


Answers:
author: Mona Singh
body: Hello Stuart,

This is Mona here, happy to help :)

I understand that you would like to add bot messages from the incident Slack channel to the Incident timeline.

Unfortunately, as of the current design, this is a **limitation** and we do not have the option to configure this setting. However, if the messages within the Slack incident channel are not bot messages then you can add them to the Incident timeline by Clicking on **"Add to Incident Timeline Opsgenie".**

That being said, we understand your requirement and we have raised a Feature Request to our Product Team to allow adding bot messages to the Incident Timeline.   

Here's the ticket id for your reference:  
<https://jira.atlassian.com/browse/OPSGENIE-1081>

Please add yourself as a watcher to this ticket to get the latest notifications regarding the feature.

Hope this helps. Please let us know if you have any follow-up questions and we'll be happy to assist :)

Thanks,  
Mona


Tags: cloud

jira-service-desk

slack
Disable second alert associated with and incident
Asked by Nishika De Silva:

I've created a **service** and and **incident rule for an alert** linking to that service. I've noticed that once the incident is created it also creates a second alert.

Can we disable this so the same alert won't generate twice?

Thank you in advance.


Answers:
author: Howard Nedd
body: Hi,

This is expected behavior. When you create an incident, it creates a **Responder Alert** for each user/team that is a responder on the incident.

When you create an incident *manually*, it also creates an alert for the person who created the incident. There isn't a way to change this behavior.

Hope that clarifies.

Regards  
Howard
Is automatic creation of Opsgenie alerts from Slack messages supported ?
Asked by aryanp:

Hi team,  

I'm trying to achieve automatic creation of Opsgenie alerts when messages are received on a Slack channel.  

Any help would be really appreciated here.


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

That is possible using the [/genie commands](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-slack-app/#Using--genie-Command) which work with the Opsgenie-slack integration.

The message would need to be formatted correctly. To create an alert you would post a message using this format in your slack channel:

/genie alert \[alert message\] for \[team1,team2,user1..\]

comments: author: aryanp
body: Hi [@John M](/t5/user/viewprofilepage/user-id/4625213)   
Thank you for the response.  

However, I wanted to know if there is a way to automate the creation of OpsGenie alerts from Slack .  
Or in other words, for each message that is received on a Slack channel, a corresponding OpsGenie alert should be automatically created without any manual intervention.  

Just checking if this is supported currently?


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

Can you also help me with another query?  

I am receiving an alert from a source in Opsgenie and I want that all the alerts from that source should be routed to a particular team?  

How can this be achieved?  

<br />


author: John M
body: Hi [@aryanp](/t5/user/viewprofilepage/user-id/5024871)

Creating alerts based on Slack messages that are not /genie commands message is not something that is supported but may be possible with a third-party integration like Zapier: <https://zapier.com/apps/slack/integrations/opsgenie>

For your second question, you can route alerts from a specific source to a particular team by adding a global policy that uses a "source" filter and specifies the team as a responder:

![2022-11-21_11-30-19.png](https://community.atlassian.com/t5/image/serverpage/image-id/226871i9201056C511B8742/image-size/large?v=v2&px=999 "2022-11-21_11-30-19.png")

![2022-11-21_11-32-01.png](https://community.atlassian.com/t5/image/serverpage/image-id/226873iFACCFE75F752242C/image-size/large?v=v2&px=999 "2022-11-21_11-32-01.png")


Tags: alert

cloud

slack
Parse JSON from AWS SNS
Asked by Dmitry Petriev:

Hi! How can I parse messages from AWS SNS in JSON format for getting the "attributes.severity" value?

I have alert manager with next configuration.

Could anyone tell me how OpsGenie parse JSON messages?

![?????? ?????? 2022-11-22 ? 15.52.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/226961iC568F9E6B99F04BF/image-size/large?v=v2&px=999 "?????? ?????? 2022-11-22 ? 15.52.48.png")


Answers:
author: Nick H
body: For visibility to Community, we were able to get the priority parsing as expected by using this custom field [@Dmitry Petriev](/t5/user/viewprofilepage/user-id/5082037) already was extracting, but replaced it into the Custom Value to Opsgenie Priority:

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

For more on extracting custom fields as well, this Community Article might be helpful for others!

[How to Extract Custom Fields and Data into an Alert](https://community.atlassian.com/t5/Opsgenie-articles/How-to-Extract-Custom-Fields-and-Data-into-an-Alert/ba-p/2133902)


author: Nick H
body: Hi [@Dmitry Petriev](/t5/user/viewprofilepage/user-id/5082037) ,

This article might help on how to extract "P2" into the alert: [How to Extract Custom Fields and Data into an Alert](https://community.atlassian.com/t5/Opsgenie-articles/How-to-Extract-Custom-Fields-and-Data-into-an-Alert/ba-p/2133902)

It'd realistically depend on how this field / value is being parsed in the alert's payload. I believe you're sharing what is sending from Alertmanager or AWS, so you'd want to review the Opsgenie Logs tab to get a better idea on what string processing or regex can be used.

comments: author: Dmitry Petriev
body: I did it, but it doesn't work in the ![?????? ?????? 2022-11-22 ? 17.56.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/226985iFEA577B3E70BDC2E/image-size/large?v=v2&px=999 "?????? ?????? 2022-11-22 ? 17.56.55.png")![?????? ?????? 2022-11-22 ? 17.56.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/226986iCF83941B78DB9AC2/image-size/large?v=v2&px=999 "?????? ?????? 2022-11-22 ? 17.56.31.png")way I want. Could you tell me why the priority is still P3, but the value is P2?


author: Nick H
body: We'd have to review the entire payload / Logs to provide a reason why this might not be parsing as expected.

Please open a ticket with Opsgenie support so we can review your account: <https://support.atlassian.com/opsgenie/>


author: Dmitry Petriev
body: So, the task became easy: how to parse such part of JSON in extra properties field AWS SNS Integration:

```
"MessageAttributes" : {
    "value" : {"Type":"String","Value":"P2"},
    "key" : {"Type":"String","Value":"severity"}
```

I need to catch "P2"

comments: author: Dmitry Petriev
body: {{MessageAttributes.value.Value}} doesn't works


Tags: aws

json
Opsgenie security concerns if integrating with ServiceNow, Nagios and Dynatrace data
Asked by Ahmed Refaat:

I understand that Opsgenie can integrate with ServiceNow, Nagios and Dynatrace via a connector APIs.

All 3 application will send confidential data that need to be secured/encrypted in transit and at rest.

Does Opsgenie standard service provide TLS encryption for them?

Do we need to implement Atlassian Edge Encryption?


Answers:
author: Howard Nedd
body: Hi [@Ahmed Refaat](/t5/user/viewprofilepage/user-id/5080583) ,  

Welcome to the community.  

All data is encrypted in transit using TLS 1.2+ with forward secrecy. Servers holding user data will use full disk, industry-standard AES 256 encryption.

---

For more information:  
<https://www.atlassian.com/software/opsgenie/security>

Regards  
Howard


Tags: cloud
SLA time missing wrong format
Asked by Serena:

Hello,

time to resolution is exactly displaying the settings I have done, but why the other field is showing me 2 months (even if the ticket was created 5 days ago)?

There is a way to show the exact **months** and **weeks** that are still remaining?

Please describe the exact steps to show both month and weeks remaining or weeks plus days remaining.

There is a way to set this?

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


Answers:
author: Patricia Francezi
body: Hi [@Serena](/t5/user/viewprofilepage/user-id/5080464) welcome to community

You can set the display format following this kb

<https://support.atlassian.com/jira-service-management-cloud/docs/set-up-sla-format-display/>

<br />

There are two formats

### SLA format display options {#toc-hId-1977433315}

#### Due date centric {#toc-hId--1626972507}

This format displays the relative time and date, or the exact date for completed, or breached SLAs. For example, *due tomorrow at 10:30 AM*.

#### Time centric {#toc-hId-860540326}

This format displays hours left on the clock. For example, *time to resolution within 8h 30m.*

I hope this helps


Tags: cloud

sla
Where is swagger package in com.opsgenie.integration.sdk
Asked by Mike Broadbear:

I am attempting to use the OpsGenie java client sdk according to:

<https://docs.opsgenie.com/docs/opsgenie-java-api>

However, when I include the dependency:  
com.opsgenie.integration.sdk, version 2.13.0

I am not able to see any of the swagger packages, and can't create an AlertsApi instance. Am I missing a step?

- com.ifountain.opsgenie.client.swagger.api

- com.ifountain.opsgenie.client.swagger.model


Answers:
author: Shivam Naik
body: Hi [@Mike Broadbear](/t5/user/viewprofilepage/user-id/5079888) ,

Happy to help!

The Swagger packages are included on this page <http://opsgeniedownloads.s3-website-us-west-2.amazonaws.com/java-sdk-doc/> near the bottom of the list.

Please let me know if you have any follow up questions!


Tags: cloud
Suppress opsgenie alerts when patch manager runs for each client
Asked by Burak COSKUN:

Hello team!

We're different polices which we're receiving alerts from AWS cloudwatch service. Those policies are getting information from AWS cloudwatch and Opsgenie creating alerts if AWSRoute53 health check is down.  
Our AWS instances are restarting some periods depending on making critical updates on the system. We're using the Maintenance Windows service to do it.  
Now working on <https://support.atlassian.com/opsgenie/docs/create-and-manage-maintenance-policies/> process and I'm wondering if we can automate this. As documentation says this is we can add maintenance for some period of time for avoiding creating alarm from source (for our case source is AWS cloudwatch).  
So to summarize this question, Is there any way to do Opsgenie going or moving some policies about which we've selected to maintenance mode without adding them by one by to the Planned mode at Opsgenie. Is Opsgenie can create planned maintenance automatically if the AWS instance restarted because of an instance doing upgrading staff?


Answers:
author: Muhammad Zeeshan
body: Hey Burak,

A suggested workaround for your use case would be to create a Lambda function in your AWS which triggers the Opsgenie Maintenance API: <https://docs.opsgenie.com/docs/maintenance-api> and creates a Maintenance Policy in your Opsgenie for whenever your AWS instance is restarted.

Since this is not an outright Opsgenie feature and a custom implementation, I would suggest reaching out to one of our Partners via: <https://partnerdirectory.atlassian.com/> for help implementing this if you need any assistance.

You can also create a Feature suggestion ticket for this functionality to our Development Team via: <https://jira.atlassian.com/secure/Dashboard.jspa> so they may consider it for future implementation.

Hope this helps answer your query.

Best regards,

comments: author: Burak COSKUN
body: Thanks a lot Muhammed for the information!

I'll try.

Best regards.


author: Muhammad Zeeshan
body: You're most welcome! :)
can the value of bamboo.planRepository.<position>.branch be changed?
Asked by Mihail Nistor:

The bamboo plan has more **Linked repositories**. The default branch for repositories is develop branch. I would like to reuse this plan to verify the changes in other branches (e.g. feature/bug branches). The first branch (bamboo.planRepository.1..branch) is updated automatically by bamboo, but the rest keep the original configuration (default branch). I would like to update the branch for the rest of linked repositories by setting bamboo.planRepository.\<position\>.branch variable. I can set manually the bamboo plan that was created for a specific branch.

I have tried to set the bamboo.planRepository.\<position\>.branch by using REST API, but without success.

curl -u \<user\>:\<password\> -X POST "https://\<bamboo_name\>/rest/api/latest/queue/\<bamboo_plankey\>/?\\

.....  
bamboo.variable.bamboo.planRepository.1.branch=\<new_name1\>\&\\

bamboo.variable.bamboo.planRepository.2.branch=\<new_name2\>\&\\

.....

I could manage to change the other custom variables defined in bamboo plan.

It seems that the bamboo.planRepository.\<position\>.branch is read only. Is there any other way to dynamically select the branches names ?


Answers:
author: Mihail Nistor
body: Hello dear support team,

The support on UI was added to override branch of a linked repository (see more at BAM-16101), but we cannot do it by using REST API.

I hope this will help you to provide a solution for this issue.
Bamboo yaml spec, create new repositories
Asked by Dimitri Dering:

Hello,   

I would like to create repositories (not link existing) in a Bamboo yaml-spec, according to the spec ref (<https://docs.atlassian.com/bamboo-specs-docs/8.0.4/specs.html?yaml#git-authentication>) this should be possible, e.g.

```
repositories:
- my-repository:
? ? type: git
? ? url: ssh://git@bitbucket.org:my-company/my-repository.git
? ? branch: master
? ? ssh-key: ENCRYPTED_KEY
? ? ssh-key-passphrase: ENCRYPTED_PASSPHRASE
```

<br />

However if the spec is scanned, I receive the following error  

```
Bamboo YAML import failed: Could not determine YAML document version: repositories / [0] / my-repository: Property is required.
```

Whether meaningful config values or just the dummies above are used, it doesn't matter.  

I cannot use linked repos since the yaml spec is generated and it contains 100+ build plans  

Are there any ways to configure repositories within Bamboo yaml specs?  


Answers:
author: Craig Castle-Mead
body: Hey Dimitry,

According to <https://community.atlassian.com/t5/Bamboo-questions/Confused-by-this-Error-Bamboo-YAML-import-failed-Could-not/qaq-p/1332452> which had a similar error, but the user was trying to achieve a different goal, the issue was related to tabbing.

Based on this, the issue may be your indenting as well

```
repositories:- my-repository:    type: git    url: ssh://git@bitbucket.org:my-company/my-repository.git    branch: master    ssh-key: ENCRYPTED_KEY    ssh-key-passphrase: ENCRYPTED_PASSPHRASE
```

```
repositories:  - my-repository:      type: git      url: ssh://git@bitbucket.org:my-company/my-repository.git      branch: master      ssh-key: ENCRYPTED_KEY      ssh-key-passphrase: ENCRYPTED_PASSPHRASE
```

Give that a go and hopefully it helps.

CCM

comments: author: Dimitri Dering
body: Hi Craig,   

the indentation hint helped, I played around with the spaces and finally got it working

Best regards,

Dimitri
Write if, else condition in bamboo yaml file
Asked by Nagomi:

I have the snippet of code in my bamboo yaml

- script:  
interpreter: /bin/sh  
scripts:

- GIT_BRANCH=${bamboo_planRepository_branch}  
- BASE_VERSION=$(date +%g.%m)  
- BUILD_VERSION="${BASE_VERSION}.${bamboo_buildNumber}"  
- echo "$BUILD_VERSION"  
- DEPLOY_ARTIFACTS="false"  
- TAG_LATEST="false"

if \[ "${GIT_BRANCH}" == "master" \]; then  
log "Master branch - build main version"

but im getting the below error, can some one help what is the issue in this code

Error Message: home/bamboo/bamboo-agent-home/temp/UTM-UMB3-JOB1-21-ScriptBuildTask-8036891390408417517.sh: 12: /home/bamboo/bamboo-agent-home/temp/UTM-UMB3-JOB1-21-ScriptBuildTask-8036891390408417517.sh: ***Syntax error: "then" unexpected (expecting "fi")***


Answers:
author: Eduardo Alvarenga
body: Hello [@Nagomi](/t5/user/viewprofilepage/user-id/4742654), Welcome to **Atlassian Community**!

Just add a ***fi*** below the "log" line and it will pass.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Nagomi
body: Yep. Thanks worked edurado.

By the way is it possible to create two plans from a single yaml file


author: Eduardo Alvarenga
body: Hello [@Nagomi](/t5/user/viewprofilepage/user-id/4742654)

Yes, it is. Please check this thread for more information.

* <https://community.atlassian.com/t5/Bamboo-questions/Can-we-have-multiple-Bamboo-YAML-specs-and-services-in-one/qaq-p/1069917>

Please don't forget to mark this answer as an Accepted Solution. Marking a reply as a solution will make it easier for others who have a similar issue to find it in the future.

Eduardo Alvarenga  
Atlassian Support APAC
tomcat
Asked by Miguel Gusils:

Hi

Our vulnerability scanner flagged tomcat as an issue, which i believe is part of the bamboo install.

Is there a patch?

were are running bamboo-8.0.6

thanks,

-mg


Answers:
author: Eduardo Alvarenga
body: Hello [@Miguel Gusils](/t5/user/viewprofilepage/user-id/1284688)

If you are referring to [CVE-2020-9484](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9484)/[CVE-2022-23181](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23181), those are being addressed by the following BAM:

* <https://jira.atlassian.com/browse/BAM-21603>

Due to its nature, it is classified as internal-only.

A fix will be released in a few days with Bamboo 8.2 bundling Tomcat 8.5.75. Please keep an eye on the [Bamboo release notes](https://confluence.atlassian.com/bamboo/bamboo-release-notes-671089224.html). You can also watch the [Bamboo Announcements community page](https://community.atlassian.com/t5/Bamboo-articles/bg-p/bamboo-articles) to be notified once a release is available.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Chihara
body: Eduardo,

Bamboo 8.2.1 has released but there is no description about these CVEs in the fix list.


author: Eduardo Alvarenga
body: Hello [@Chihara](/t5/user/viewprofilepage/user-id/749867),

As mentioned before, <https://jira.atlassian.com/browse/BAM-21603> is an internal ticket and will not be mentioned to the public. I can confirm the fix for the CVE has been published and is available on Bamboo 8.2.1.

You can validate the embedded Tomcat version in Bamboo by following this KB:

* [How to find the version of bundled software in Bamboo](https://confluence.atlassian.com/bamkb/how-to-find-the-version-of-bundled-software-in-bamboo-1115668736.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC