youngmon/atlassian-qna huggingface dataset:
filter for cloudwatch events
Asked by Saurabh Shah:

Hi There

can I filter an alarm state OK value, we want to close an alert based on alarm status.

here is what we have tried:

using "detail" and regex combination - filter does not work.

using "detailMap" requires string either a key or value which doesn't work since it's nested JSON

here is an example event

{  
"version": "0",  
"id": "xx",  
"detail-type": "CloudWatch Alarm State Change",  
"source": "aws.cloudwatch",  
"account": "xx",  
"time": "2023-07-24T07:20:41Z",  
"region": "eu-west-2",  
"resources": \[  
"arn:aws:cloudwatch:eu-west-2:xx:alarm:Module-xx-API-xx-4xx"  
\],  
"detail": {  
"alarmName": "xx-nonprod-Test-Alarm",  
"state": {  
"value": "ALARM",  
"reason": "Threshold Crossed: 1 out of the last 1 datapoints \[0.5 (24/07/23 07:15:00)\] was greater than the threshold (0.1) (minimum 1 datapoint for OK -\> ALARM transition).",  
"timestamp": "2023-07-24T07:20:41.222+0000"  
},  
"previousState": {  
"value": "INSUFFICIENT_DATA",  
"reason": "Insufficient Data: 1 datapoint was unknown.",  
"timestamp": "2023-07-24T07:07:41.220+0000"  
},  
"configuration": {  
"metrics": \[  
{  
"id": "xx-5dbe-8bd2-03eb-xx",  
"metricStat": {  
"metric": {  
"namespace": "AWS/ApiGateway",  
"name": "4xx",  
"dimensions": {  
"ApiId": "xx"  
}  
},  
"period": 300,  
"stat": "Average"  
},  
"returnData": true  
}  
\],  
"description": "Monitors the 4xx errors threshold"  
}  
}  
}  
PS: we are using CloudWatch event and not CloudWatch alarms Integration to avoid some duplication


Answers:
author: John M
body: Hi [@Saurabh Shah](/t5/user/viewprofilepage/user-id/5291780) ,

If your alarm is not closing using the filter you've setup, you should be able to see why in the [debug logs](https://community.atlassian.com/t5/Opsgenie-articles/How-to-solve-Opsgenie-issues-using-the-debug-logs/ba-p/2433250).

One common reason is that the payload is matching the filter for the 'create' action, and thus [deduplicates](https://support.atlassian.com/opsgenie/docs/what-is-alert-de-duplication/) (increases the count of an open alert with the same alias) and never reaches the 'close' action (since actions are processed from top to bottom, and can only match one action, per payload).

If you don't see the issue, please post a screenshot of your both your 'create' and 'close' actions - including both the filters and the alert body configuration.


Tags: event
Ops genie and accessing custom Atlassian Assets object schemas
Asked by Boris Zozoulia:

Hello Atlassian Gurus,

Ops genie is heavily relying on the Services Object Schema in Assets.

Services schema is somewhat limited in its content, and we require some additional flexibility in the enriching OpsGenie alerts upon arrival with some additional information stored in other Assets object schemas (which we have developed for our org)

An example of enrichment would be adding custom tags and attributes to the alerts driven by that custom schema, allowing us to implement better logic in assigning these alerts to the responders.

One way of doing it is:

1. Once the alert is in ops genie - webhook integration will call a ++Jira webhook++ for the  
**"if the is created" then "post to URL in Webhook"** condition.

2. ++Jira webhook++ destination is provided by the *Jira automation*, which would be triggered once the Incoming webhook request is detected

3. *That automation* will grab the OpsGenie alert payload, parse it, query the custom assets object schema, and via OG restful APIs will enrich the original alert.

The approach above is workable but somewhat complex.

Is there a native way of accessing other (non-Service) object schema in assets from ops genie, where OG is to query the assets grab additional details required and add those to the alert?

Is there an appetite/roadmap of expanding the OG functionality to be able to see in Assets?


Answers:
author: Egor
body: Hey Boris,  

Thanks for reaching out to Atlassian Community!   

May I ask you please to raise it as a suggestion using <https://jira.atlassian.com/projects/OPSGENIE> ?   

That way, it'll be logged as a feature request ticket to our Product team.

<br />

Please let me know if you need any assistance with that.

Best Regards,  
Egor

comments: author: Darius
body: [@Egor](/t5/user/viewprofilepage/user-id/3583730)   

Since you're 'Team Atlassian' would you mind submitting this on behalf of [@Boris Zozoulia](/t5/user/viewprofilepage/user-id/4381887), myself, and the other people who are very interested in this functionality?   

Its not possible for us to create suggestions at that URL. They instead require us to use the 'give feedback' option within the apps, and *if we are lucky* the suggestion makes it onto <https://jira.atlassian.com/projects/OPSGENIE> as a suggestion.

<br />

Having you submit it on his behalf and link back to it here would also help others find and vote for the suggestion.


author: Egor
body: Hey Bors, Darius,   

Sure, that makes sense! I went ahead and created the following ticket for our Product team to review- <https://jira.atlassian.com/browse/OPSGENIE-1622>

Please make sure to start watching it and vote for it. Also, feel free to add any additional comments/feedback to it.

<br />

Please let me know if there's anything else I can help you with.

Best Regards,  
Egor


author: Darius
body: Thank you!


author: Boris Zozoulia
body: Thank you [@Egor](/t5/user/viewprofilepage/user-id/3583730)


Tags: automation
Customize OpsGenie alerts priorities for tickets imported through Jira integration
Asked by Horia Luta:

Hello,

How can I modify the alerts' priorities to reflect the ones of tickets coming from Jira Legacy? As of now, all alerts that are opened have the default P3 priority regardless of the priority assigned in Jira. I've looked through the documentation offered by Atlassian but there are certain fields I cannot access/do not know where to find them in order to modify the script.

Thank you


Answers:
author: John M
body: Hi [@Horia Luta](/t5/user/viewprofilepage/user-id/5240529) ,

This article provides several methods with a step-by-step guide to help you map priorities from Jira:

<https://community.atlassian.com/t5/Opsgenie-articles/How-to-Map-Alert-Priorities-in-Opsgenie/ba-p/2044304>


Tags: cloud
What is the lifecycle of Alerts created in Opsgenie ?
Asked by gaurav.arora1:

HI Team,

We have created and integrated Opsgenie with Azure Alerts and is working fine . Now , we need to know what is the lifecycle of generated Alert in Opsgenie or it will be auto closed afte 24 hours or so if not acknowledged by any individual or team ?

Apparently we have also checked that this integration keeps breaking in between for us , we have raised multiple ticket in past and those are also resolved but as we are going on PROD next week we need some robust solution to it.

Could you please check if we have missed something during integration ?

Regards

Gaurav Arora

9599376646

( working hours : 12 PM to 8 PM IST )


Answers:
author: John M
body: Hi [@gaurav.arora1](/t5/user/viewprofilepage/user-id/5288538) ,

Alerts are not auto-closed unless you have a notification policy that specifies that they should be closed automatically after a certain time period.

We cannot view your setup without a support ticket, so I would recommend opening a ticket or chat so our support team can assist.

<https://support.atlassian.com/contact/>
Escalations are not Firing on Alerts in my Free Account
Asked by deuce_sapp:

We have a free account with four users. We have a single team and a single routing rule. That rule says IF for any received alert THEN route to On-call Schedule ELSE route alerts to Escalation Rule.

We are getting the alerts for the on-call, but it never escalates. Even when looking at the alert logs, we don't see any evidence of attempting the escalation. The escalation rules say Notify the on call if not acknowledged at 0 minutes, notify the entire team after 20 minutes if not acknowledged.

Anyone else seen this behavior before?


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

Whenever you route directly to a schedule, your escalations will not be used at all.

Escalations are only used if explicitly stated by the routing rules.

You will need to change your routing rule to route to the escalation, rather than the schedule.

You will see one of the following warning messages if you are routing directly to a schedule:

![2023-08-07_16-43-03.png](https://community.atlassian.com/t5/image/serverpage/image-id/273752i34683235833B36D6/image-size/large?v=v2&px=999 "2023-08-07_16-43-03.png")

![2023-08-07_16-52-58.png](https://community.atlassian.com/t5/image/serverpage/image-id/273753i684A88772DEB800A/image-size/large?v=v2&px=999 "2023-08-07_16-52-58.png")

comments: author: deuce_sapp
body: Thank you John! That was it!
Incoming calls for European country (Opsgenie included with JSM plan)
Asked by Nathan Weelen:

Hi

I have a Jira Service Management with Premium plan which includes Opsgenie fetaures. So **it is not a standalone Opsgenie**. I would like to set up the integration for Incoming calls but I have some questions.

The company is in Luxembourg in Europe. In the documentation, I see that it is only possible to use Twilio US Region 1 number to integrate incoming calls.

Does it means that for European users, they will need to call a US number to use this feature (and therefore pay many fees) ?

Is it possible to use a Luxembourg or a least European number ?

Thank you in advance for your answers.


Answers:
author: John M
body: Hi [@Nathan Weelen](/t5/user/viewprofilepage/user-id/5101499) ,

You should be able to purchase a European number and still set the region to 'US1.' Here is the Twilio documentation that shows how to set the region for a number:

<https://www.twilio.com/docs/global-infrastructure/inbound-processing-console>
How to get On Call User start and end time of a specific team using API
Asked by Sheher Yar:

I am working on a project which requires getting on-call data from multiple teams in Opsgenia to be written into an Excel file I have managed to get the name day date and team name however I can't seem to find a way to get the person on call's start time and end time can anyone help? I have gone through the documentation it gives dates for the entire rotation not individual person.


Answers:
author: John M
body: Hi [@Sheher Yar](/t5/user/viewprofilepage/user-id/5285959)  

The 'Get Schedule Timeline' API should be able to provide you with the individual start and end dates of each user on the rotation:

<https://docs.opsgenie.com/docs/schedule-api#get-schedule-timeline>


Tags: cloud

rest-api
How to integrate opsgenie with myaccess?
Asked by Walace Feres:

How we can integrate opsgenie with MS MyAccess? We desires integrate MS MyAccess with opsgenie to users can request access for use opsgenie throught MS MyAccess.

Is there any doc about it? Tutorial or somethink like that?


Answers:
author: Muhammad Zeeshan
body: Hey [@Walace Feres](/t5/user/viewprofilepage/user-id/5277770)

Opsgenie does not have an integration with MS MyAccess. However, I shall forward your request as a Feature suggestion ticket to our Development and Product team for future consideration. You can track and vote on it via: <https://jira.atlassian.com/browse/OPSGENIE-1602>

There are currently no other documents or tutorials on such a functionality.

Thank you for your feedback and helping make Opsgenie a better product!

BR,

comments: author: Walace Feres
body: Thanks Muhammad! it helped a lot!


Tags: permission

sso
How i do azure AD delivery a especifical role to a user automatically?
Asked by Walace Feres:

In my company, we have integrate opsgenie with Azure AD to authenticate users with SSO, but, we have intentions that users authenticate and receive permissions(roles) in opsgenie automatically, its is possible natively? Azure AD can delivery permissions for opsgenie users directly?


Answers:
author: Muhammad Zeeshan
body: Hey [@Walace Feres](/t5/user/viewprofilepage/user-id/5277770) ,

Yes that is possible when you are using Azure AD SSO via Opsgenie login.

Under Opsgenie *Settings \> Login and SSO \> Azure AD* you can enable the following option and then see the user role you can auto-provision the users with:

![Screenshot 2023-08-07 at 10.26.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/273499i2F42792C7B30C003/image-size/large?v=v2&px=999 "Screenshot 2023-08-07 at 10.26.27.png")

Best regards,

comments: author: Walace Feres
body: Thanks Muhammad ! But, in this case, all of users receive same rule, right? How i can make azure AD delivery differents rules for different users, it is possible?


Tags: azure

cloud

integration

sso
Why don't Incoming Calls and Total Calls match when looking at user data?
Asked by Mark Presten:

When looking at Incoming Call Routing \> Incoming Call Usage per User, why don't Incoming Calls and Total Calls match? What is the difference between the two?


Answers:
author: Rafael Meira
body: Hello [@Mark Presten](/t5/user/viewprofilepage/user-id/5284492) happy to help.  

Could you share more information? Which report are you pulling exactly, could you share a screenshot?  

<br />

Best,  
Rafa

comments: author: Mark Presten
body: Hey [@Rafael Meira](/t5/user/viewprofilepage/user-id/4969383) . Thanks for the response. Here is what I am referring to. This chart can be found in Analytics \> Incoming Call Routing \> Incoming Call Usage per User. My question is why do total calls and incoming calls not match?

![Screen Shot 2023-08-07 at 9.41.43 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/273701i2EE4A0F596EC7571/image-size/large?v=v2&px=999 "Screen Shot 2023-08-07 at 9.41.43 AM.png")


author: Rafael Meira
body: Hey [@Mark Presten](/t5/user/viewprofilepage/user-id/5284492)   

Seems like it is the addition of answered + missed ones.  

<br />

Best,  
Rafa


author: Mark Presten
body: Thanks, but why are some of those missed not counted as incoming calls?


author: Rafael Meira
body: In response to your query about the difference between "incoming calls" and "total calls," it's possible for calls to come in but be neither missed nor answered.  

Additionally, the discrepancy could be attributed to multiple missed calls from the same number.   

It's important to note that the columns are individual SQL queries, so the "total" columns may not always equal the sum of the others displayed.


author: Mark Presten
body: Ah thank you for the clarification!


Tags: cloud
Can you change the names of Priority Levels?
Asked by Evan Giordanella:

OpsGenie priorities default to P1-P5. My other systems use P0-P4. I was wondering if it is possible to rename the priority levels from within OpsGenie. Having consistency or the ability for custom levels would be very helpful.


Answers:
author: John M
body: Hi [@Evan Giordanella](/t5/user/viewprofilepage/user-id/5227323) ,

Opsgenie priorities can't be changed but you can map priorities from other systems to Opsgenie priorities. Here is an article on a couple of ways that can be done:

<https://community.atlassian.com/t5/Opsgenie-articles/How-to-Map-Alert-Priorities-in-Opsgenie/ba-p/2044304>


Tags: cloud
How long are alerts stored in Opsgenie?
Asked by Patrick Mischler:

What is the retention time for alerts in Opsgenie and can it be configured?


Answers:
author: Shashwat Khare
body: Hello [@Patrick Mischler](/t5/user/viewprofilepage/user-id/4991524) ,  

The [Logs page](https://support.atlassian.com/opsgenie/docs/search-logs/) is the place where all the incoming data related to integrations, configuration updates within your organization, and detailed versions of the alert activity events can be viewed in the alert activity logs.  

You can search your organizational logs through the Logs page, for the last 2 weeks from that moment.  

API: [Logs API](https://docs.opsgenie.com/docs/logs-api)  

These logs have a retention time of the last 13 days, however, the alerts will stay in your Opsgenie instance once created and wouldn't be deleted automatically as long as your account stays active.  

<br />

Best,  
Shashwat

comments: author: Patrick Mischler
body: Hi [@Shashwat Khare](/t5/user/viewprofilepage/user-id/5070894) ,

The question was more in regards of the alerts sent to Opsgenie and how long they are stored in the system (retention time for alerts). We need this information for our documentation.

Best,  
Patrick


author: Shashwat Khare
body: Hello [@Patrick Mischler](/t5/user/viewprofilepage/user-id/4991524) ,  

My sincere apologies for the confusion :)   

The Retention Time depends on what [pricing plan](https://www.atlassian.com/software/opsgenie/pricing) of Opsgenie you're subscribed to and it's as below:  

**++Plan++ ++Retention Time++**   

Free 3 months  
Essentials 6 months  
Standard 1 year  
Enterprise Unlimited  

<br />

Best,  
Shashwat


Tags: cloud
Future of Bamboo
Asked by Shamil Nunhuck:

I'm considering different CI/CD tools (and build servers) and looking at Bamboo. Given our on-premise requirement, and Atlassian's cloud-first (only?) strategy, I wonder if it makes sense to continue to evaluate whether Bamboo could be a useful product.

Looking at the [roadmap](https://www.atlassian.com/roadmap/data-center?status=comingSoon;future&) for Bamboo DC, it looks like the only new perspective feature is ephemeral agents, whilst there are only two items related to scalability. There are no-user facing features (e.g easier pipelines, expansion of specs etc). I would note that competitor products are pushing new user features (e.g simple pipelines, UI changes to support simpler pipelines etc).

What is the future of the Bamboo DC product?


Answers:
author: Martyna Wojtas
body: Hi [@Shamil Nunhuck](/t5/user/viewprofilepage/user-id/185202), thank you for expressing your interest in Bamboo! Atlassian Data Center products, including Bamboo DC, are not going anywhere. As [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) wrote, yes, Atlassian has a Cloud-first strategy but we're fully aware that our customers also need on-premise solutions, hence we're continuing to invest in our Data Center products. You may expect a DC roadmap update quite soon.

As for Bamboo, we're currently working on a large feature, that would be new type of agents - ephemeral kubernetes agents. They will allow for instant and automated scalability, resource saving, increased security thanks to build isolation and full admin control, and making builds less environment dependent. Then we will focus on improving high availability. We currently offer cold standby in Bamboo, the next steps would be to reduce the downtime and increase horizontal scalability (cluster capacity). As both of these features are large and our main focus, we're not adding any smaller user facing features into the roadmap, in order not to overpromise. However, we always do everything we can to add some extra features to the [releases](https://confluence.atlassian.com/bambooreleases/bamboo-release-notes-1189793869.html), even when they are not on the public roadmap. The [features](https://www.atlassian.com/roadmap/data-center?status=released&) that've developed in the past months (which were not announced in advance) include: Bitbucket Cloud web hook integration, audit log content search, support for pull requests from forked repositories for Bitbucket Server and GitHub, YAML Specs validator, improved performance of deployments data gathering and artifact transfer, SFTP artifact handler, and OAuth2 support. You can also expect the first [Long Term Support](https://confluence.atlassian.com/enterprise/long-term-support-releases-948227420.html)version of Bamboo very soon.


author: Nic Brough -Adaptavist-
body: I cannot speak for Bamboo, but I can say it's definitely not a Cloud-only strategy, just Cloud-first. Atlassian have a very large user-base for Server/DC, and the revenue from DC installs from people who cannot or will not go to Cloud is significant to them.


Tags: server
How to connect to the bamboo database?
Asked by Sebastian M_:

Following the suggestion laid out here:  

[No agents meet this job's requirements \| Bamboo \| Atlassian Documentation](https://confluence.atlassian.com/bamkb/no-agents-meet-this-job-s-requirements-833942890.html)  

how does one connect to the database at step:  

Before we dig into capabilities and requirements, we first need to make sure no Bamboo agent is dedicated to the particular *PROJECT, PLAN, JOB, DEPLOYMENT* and/or *ENVIRONMENT* you are experiencing the issue with. In order to do that, please run the following SQL statement against Bamboo's database:  

    select AGENT_TYPE, TITLE, ENABLED, ASSIGNED.*  from AGENT_ASSIGNMENT as ASSIGNED  join queue as AGENT       on ASSIGNED.EXECUTOR_ID = AGENT.QUEUE_ID;

`?`


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

With a database client of some sort. For my databases at home, I tend to use psql and phppgadmin for most, and mysql for the rest.

You should probably talk to your database administrators about this.
How can i test my bamboo spec changes without merging the code in master.
Asked by coder:

We started using bamboo yaml spec recently. I am trying to find a way to check if there is a way to test our changes in existing yaml file (changes like variable/new job/new stage etc..) without merging it to master.

I tried to use bamboo spec as first repo in those plan and create new branch with every new branch creation but changes are not applied to bamboo plan branches. Is there any better way to test bamboo yaml spec branch changes on a spec plan without merging those to master ???


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

You can create a different Linked Repository and point it to a different Branch. Once you scan that Repository it will consider that branch. But, the changes contained in the Specs code will apply directly to the Project/Plan you are looking to "test".

Ideally, that branch will need to contain code that would point to a DEV/Staging Project/Plan name, then once you are satisfied with the changes you can merge that revision to master and restore the Production Project/Plan names before pushing it.

Ultimately, if you are looking to effectively test changes before applying them to production with minimal adaptation, you need to have a Bamboo non-production (UAT) instance that will connect to the Specs repository (via a different branch), validate the changes and then once you merge the PR to master/default, the Production Bamboo instance will catch the changes and apply them.

You can check your YAML Specs code via the [YAML Specs validator](https://confluence.atlassian.com/bamboo/validating-yaml-specs-1189785540.html) feature, available on Bamboo 9.1 and onwards.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: spec