youngmon/atlassian-qna huggingface dataset:
...
Asked by Piyush Rathod:

..


Answers:
author: Nick H
body: Hi [@Piyush Rathod](/t5/user/viewprofilepage/user-id/4864126) ,

You can use [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/) or [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/) to extract those specific fields.

I believe you should be able to use:

```
{{ description.substringBetween("alertname =","-") }}

{{ description.substringBetween("env =","-") }}

{{ description.substringBetween("description =","-") }}
```

to pull those values.


Tags: integration

prometheus
SOLVED
Asked by Yaoyuan Cui:

NA


Answers:
author: Darryl Lee
body: Hi [@Yaoyuan Cui](/t5/user/viewprofilepage/user-id/4863860) ,

This is Darryl. I am here to help. ?

Does that mean there is nothing we can assist you with at the moment?

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian
Opsgenie Insight integration on cloud
Asked by g.davitaia:

Hi Community,

We are facing an issue - we are using JSM Premium, have made a service catalog, and want to show the objects on the Opsgenie incident templates.

For now, only the system "Service" objects are shown on the Opsgenie incident screen and it is not configurable.

is it possible to create a new insight custom field for Opsgenie?

Thank you,


Answers:
author: Darryl Lee
body: Hi [@g.davitaia](/t5/user/viewprofilepage/user-id/4155058) ,

This is Darryl. I am here to help.

Do you mean you expect to include some other fields from the Insight in the Jira Service Management cloud to be configurable on the Incident Templates of Opsgenie?

Please help us understand this inquiry.

Further to the details, the [Insight in the Jira Service Management cloud](https://support.atlassian.com/jira-service-management-cloud/docs/what-is-insight-in-jira-service-management-cloud/) is to track the assets, configuration items, and resources to understand and visualise the critical relationships between applications, services, their underlying infrastructure, and other key dependencies.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian

comments: author: g.davitaia
body: Hi Darryl,

To answer your question - Yes, the case is next - we have the insight object field "Business Service" which shows objects coming from the insight catalog, we need this field to be visible on Opsgenie templates.

Thanks,

Gvantsa


author: Darryl Lee
body: Hi [@g.davitaia](/t5/user/viewprofilepage/user-id/4155058) ,

Thanks for the further details.

Unfortunately, this is not feasible in the current design to map the fields from the Insight of JSM to Opsgenie Incident Template.

However, I have created a feature request on your behalf, [JSDCLOUD-11187](https://jira.atlassian.com/browse/JSDCLOUD-11187), please vote it and set yourself as a Watcher to receive the latest updates.

Thank you very much for your feedback in helping us improve our products.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian


author: g.davitaia
body: Thank you Darryl


Tags: cloud

insight

jira-service-management

jira-service-management-cloud
Opsgenie - JSM integration : Is it possible to prevent the automatic set of "responder" field
Asked by Brachetto, Django:

Dear all,

I am working on this case from a while now and didn't find a solution (except disable the responder alerts in Project Settings, something that a don't want to).

Actually, with the above setting enable, whenever someone is assign to an incident, the field responder is automatically fill with the value of the assignee and an alert raised in opsgenie regardless the priority of the incident. I havent any automation that make an intervention in this process and aren't able (after many tries in opsgenie option integrations) to solve that case.  

In our use case, we only use the opsgenie alert for P1 escalation. So I don't want that when someone is assigned to an incident the responder field is automatically fill and an alert is raised in opsgenie regardless the incident priority. We only have an automation to fill the responder field with the correct opgenie team when a P1 is detected.

Have you ever had a similar case and misfunction, is it a "standard" behavior when the "RESPONDER ALERTS" is enable ?

Thanking you in advance for your help and knowledge sharing regarding this case. =)  

Django


Answers:
author: Shivam Naik
body: Hi [@Brachetto, Django](/t5/user/viewprofilepage/user-id/4762465) ,

Happy to help!

I would recommend submitting a Support ticket so that we can get a closer look at your JSM integration, but based on your question here, you could prevent that from happening by making edits to the Alert Action Filter for your JSM integration like below; by either making sure that the Responder field is clear, or that someone specific is in place, you should be able to prevent automatic assignments. This Advanced Settings section will also allow you to finetune how those alerts are created:![](https://i.imgur.com/EayMRfn.jpg)  

I would also recommend looking over this article, as they cover how to use the Advanced Setting section more:<https://support.atlassian.com/opsgenie/docs/action-filters-in-opsgenie-integrations/>  

<br />

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


author: Mick Szucs
body: There is a feature request open for this:

<https://jira.atlassian.com/browse/JSDCLOUD-11583>

If this would be useful to you please vote for it.


Tags: alert

jira-service-management
What is the link between services in Opsgenie and Insight?
Asked by Howard Nedd:

*** ** * ** ***

Hi Community,

Rootcause:

I have done a clean up in Opsgenie. We had a few unowned services in Opsgenie and I decided to clean these up as these were not being used in Opsgenie.

Now it seems that the services I deleted in Opsgenie automatically got deleted in Insight. What is the link here as I was under the assumption that the service I created in Opsgenie were read-only fields.

Is the source of these services Insight? Were these serviced actually created in Opsgenie or elsewhere?

Thank you in advance.


Answers:
author: Darryl Lee
body: Hi [@Howard Nedd](/t5/user/viewprofilepage/user-id/4566707) ,

This is Darryl. I am here to help. ?

Understand that you are wondering about the relationship between the Opsgenie Service and the Insight on your Jira Service Management Cloud.

From your description, I assume that your Opsgenie is a subordinated subscription of your Jira Service Management cloud.

According to this [article](https://support.atlassian.com/jira-service-management-cloud/docs/what-is-insight-in-jira-service-management-cloud/), the Insight of Jira Service Management is a collection of Asset Management including the Service of the linked Opsgenie.

That is to say, once you delete the Service on your Opsgenie, the same-name entry on your Insight will be removed along the way.

Hope this helps.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian


Tags: cloud

insight

jira-service-management

jira-service-management-cloud

service
Anyway to add an extra alias check for deduplication?
Asked by Yeefong Aunn:

We are facing an issue where the subject with unique timestamp is parse into the alias field. And since Opsgenie does deduplication by unique alias, alerts kept getting created. Is there a way where we can have another alias field as an additional check? For example the other alias field will check the source of where it comes from.


Answers:
author: Tom Russell
body: [@Yeefong Aunn](/t5/user/viewprofilepage/user-id/4861464) is the alias that's being passed in a consistent format? If so, you can use the 'extract' string processing function to change your alias and strip out the date. If you don't want this done for all alerts, add a new 'Create Alert' block that only processes the alerts where you want the alias edited.

comments: author: Nick H
body: What [@Tom Russell](/t5/user/viewprofilepage/user-id/4107159) mentioned, that would also be my suggestion.

Here's some documentation on [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/), and [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/), which customers also leverage to extract data into alert / fields.


author: Tom Russell
body: As an example, if your incoming alias was:

**"Here is my alias with date of 6/5/2022"**

You could set the alias field in the integration to:

**{{alias.extract(/(.\*) with date of \\d{1,2}\\/\\d{1,2}\\/\\d{2,4}/)}}**

or just simply:

**{{alias.extract(/(.\*) with date of .\*/)}}**

and your alias would end up the same, no matter the date:

**"Here is my alias"**


author: Yeefong Aunn
body: There is too many variable to define as it will include date, time, email addresses and the alias content is not fixed.

What i'm looking for is:

Example:  
Subject: Alert on date 06/05/2022 2350  
Source of alert: xyz@email.com  

Subject: Alert for abc@email.com on date 06/05/2022 2355  
Source of alert: xyz@email.com  

Subject: Alert on date 06/05/2022 2359 from abc@email.com   
Source of alert: xyz@email.com

We are getting new alerts each time since the subject is different and the subject is parsed in as the alias field. However, what we wanna do is deduplicate based on alias field which contains 2 fields (i.e: first looking at the **Source of Alert** as condition 1, followed by **Subject** as condition 2). This way we only handle 1 alert since the source of the alert is the same.


author: Tom Russell
body: [@Yeefong Aunn](/t5/user/viewprofilepage/user-id/4861464) If there is that much variability in your subject line/current alias, you have some options:

* Try to standardize the alerts coming in (probably not feasible).
* Setup a "Create Alert" block in the integration for each variation that you will be receiving. Your extract function can change to match what's coming in.
* Extract text from the message for your alias, if there is more consistency in the way it is formatted.
Receiving the same message sent in the update stakeholders several times
Asked by Ana Laura de Melo:

```
Hello, when an incident has multiple services attached, stakeholders receive the same message multiple times, is it possible to control so that only one message is sent?
```


Answers:
author: Darryl Lee
body: Hello [@Ana Laura de Melo](/t5/user/viewprofilepage/user-id/4747095) ,

This is Darryl. I am here to help.

Understand that the scenario is the same stakeholders subscribing to multiple Opsgenie Services will receive duplicated notifications when there is an Opsgenie Incident created impacting those Services.

Unfortunately, this is intended as Opsgenie ensures the Stakeholders will not miss any incidents that impact the Service they are listed.

Even though it's the same incident, it may contain different impacts on different services.

Hope that this is making sense.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian


Tags: cloud

incident

notification

stakeholder
Voice Number with Extension
Asked by Ryan Bullock:

We have some support teams that have a single phone number with an extension that is called for alerts. In our previous paging tool we could enter a number with an extension but I do not see a way to do this in OpsGenie. Is it possible?


Answers:
author: John M
body: Hi Ryan,

Unfortunately, we don't currently have an option in the application to add extensions for phone numbers. Sorry about that.
How can I get azure alertid by GET request response id?
Asked by Bohdan Kukliuk:

Hi,

I create opsgene azure alerts by api requests like this.

<https://api.opsgenie.com/v1/json/azure?apiKey=xxxxxxxApiKeyxxxxxxxxx>

{  
"schemaId": "azureMonitorCommonAlertSchema",  
"data": {  
"essentials": {  
"alertRule": "StorageCheck high message ",  
"severity": "Sev3",  
"signalType": "Metric",  
"monitorCondition": "Fired",  
"monitoringService": "Platform",  
"firedDateTime": "2020-06-29T18:41:05.7016722Z",  
"description": "Test Description",  
"essentialsVersion": "1.0",  
"alertContextVersion": "1.0"  
},  
"alertContext": {  
"properties": null,  
"conditionType": "SingleResourceMultipleMetricCriteria",  
"condition": {  
"windowSize": "PT1M",  
"allOf": \[{  
"metricName": "SuccessfulRequests",  
"metricNamespace": "Microsoft.EventHub/namespaces",  
"operator": "GreaterThan",  
"threshold": "2",  
"timeAggregation": "Total",  
"dimensions": \[{  
"name": "EntityName",  
"value": "test-eventhub"  
}, {  
"name": "OperationResult",  
"value": "Success"  
}\],  
"metricValue": 4.0,  
"webTestName": null  
}\],  
"windowStartTime": "2020-06-29T18:38:52.06Z",  
"windowEndTime": "2020-06-29T18:39:52.06Z"  
}  
}  
}  
}  

And i want to get alert id by get request.

I tried use this request:  
<https://api.opsgenie.com/v2/alerts/requests/xxxxxxxRequestsIDxxxxxxxxx>  

Authorization: GenieKey xxxxxxxApiKeyxxxxxxxxx

Content-Type: application/json

Body {}

But its return me 403 error The request could not be satisfied.

If request without body its return me message "Request not found. It might not be processed, yet."

<br />

I tried another request:

[https://api.opsgenie.com/](https://api.opsgenie.com)v1/json/azure/alerts/requests/xxxxxxxRequestsIDxxxxxxxxx?apiKey=xxxxxxxApiKeyxxxxxxxxx

Content-Type: application/json

Body {}

But its return me 403 error The request could not be satisfied.

What the correct way to get azure alert id by request id?


Answers:
author: Nick H
body: Hi [@Bohdan Kukliuk](/t5/user/viewprofilepage/user-id/4690704) ,

Are you able to run a general List Alerts API call, then use this to GET that specific alert's ID?

If you do that, the request ID will also be returned in the GET on the specific alert.

<https://docs.opsgenie.com/docs/alert-api#list-alerts>

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


author: Nick H
body: Actually - my initial response is not correct. The request ID returned in the GET alert response is the request of that specific API call.

Without capturing the create alert request ID when the request is completed, I don't believe there is a way to GET it with any of our API calls - besides checking the alert's activity log in Opsgenie, which should capture the request ID here:

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

But like mentioned in my past response, you should still be able to use the Alert API to list alerts, and use the alert's ID to run a GET to pull the alert as well.


Tags: atl-rvw
Why does Bamboo need a plan attached to a project?
Asked by Rodion Alukhanov:

If I can create only a single plan for every project, why don't attach stages directly to the project removing the plan entity from the tree?

UPDATE: Sorry, I asked a stupid question. The button "Create Plan" converts itself to a menu item after the first plan is created. It is still possible to create as many plans as you want. You just need to find the new location of the "Create Plan" command :-)


Answers:
author: Alexey Chystoprudov
body: Because they're different entities. Project is a home of plans. It's possible to create repositories, variables, shared credentials assigned to project and then all plans of this project can share them. It allows to share Bamboo instance between independent teams without disturbing each other


author: Daniel Ebers
body: Hi [@Rodion Alukhanov](/t5/user/viewprofilepage/user-id/4511002)

adding to the spot-on information from Alexey I just wanted to add that this video helped me a lot in the former days to grasp the basics:

* **Bamboo Tutorial**   
  <https://www.youtube.com/watch?v=7KuNy9CD1lA>

There is also an older video which explains it also quite well:  
<https://www.youtube.com/watch?v=ank4VeGHB94>

Regards,  
Daniel
how to add group into all deployment project
Asked by Venkatesan Ravichandran:

i have created one group called bamboo-readers, i want to add this group into all my deployment projects. adding manually is lengthy task. I want to add using API. Please advise


Answers:
author: Alexey Chystoprudov
body: Iterate over projects with <https://docs.atlassian.com/atlassian-bamboo/REST/8.0.0/#d2e5426>

```
?curl -H "Authorization: Bearer ACCESS_TOKEN" \
"https://BAMBOO_URL/rest/api/latest/deploy/dashboard/paginate?limit=500" \
 | jq ".results | .[] | .id"
```

Then grant read permission <https://docs.atlassian.com/atlassian-bamboo/REST/8.0.0/#d2e2419>

```
curl -X PUT -H "Content-Type: appllication\json" \
https://BAMBOO_URL/rest/api/latest/permissions/deployment/DEPLOYMENT_ID/groups/GROUP_NAME \
-d "[\"READ\"]"
```

comments: author: Venkatesan Ravichandran
body: using this API, we can able to change the permission of existing group. we wanted to perform add new group in all existing deployment projects.
Pull request on bitbucket isn't triggering a build on bamboo
Asked by stevenzhong:

Pull request on bitbucket isn't triggering a build on bamboo.

We have built bitbucket and Bamboo internally. Currently we have moved the bamboo server to the new IP. However, when pull requests were submitted on bitbucket and merged, the builds could be automatically added to Bamboo, but now they cannot be automatically triggered.


Answers:
author: Khushboo Gupta
body: Hi [@stevenzhong](/t5/user/viewprofilepage/user-id/4495490)

I'm sorry to hear that you are facing this issue.

A couple of checks that may guide to a better understanding of what is causing this issue:

1. Check if the server URL in the application link updated in Bitbucket or not and able to resolve the correct ip address from the Bamboo url

2. Check if bamboo is able to resolve bitbucket server ip/hostname : This will check if we both server are accessible to each other.

3. Check in triggers tab under configure plan, if triggere's has been set to remote trigger.

4. Check if you are able to manually triggered a build to the bitbucket repository.

5. **Try to resave the repository to reestablish the SSH keys :**This one will only work if the application links are properly configured and the user trying to save the repository has the permissions over this same repository on Bitbucket side.

6. I**f resaving the SSH keys do not work, what do you see in the Bamboo server logs when you try resaving them?** Checking the file *\<Bamboo_Home\>/logs/atlassian-bamboo.log* will allow you to see if the public key was added again.

Please let me know what you get from them.
After the restart of Bamboo server Application access is failing with health check field status
Asked by Muneeb Basha Shaik:

After the Bamboo server restart we are facing issue in accessing the Bamboo application with health check failure with below error

Bamboo bootstrap failed: Your Bamboo instance could not start because health check failed.


Answers:
author: Eduardo Alvarenga
body: Hi [@Muneeb Basha Shaik](/t5/user/viewprofilepage/user-id/4504173)

Welcome to **Atlassian Community**!

To help you further with your issue we'll need more details of your Bamboo environment. Please check your *\<bamboo-home\>/logs/atlassian-bamboo.log* file for any errors or warnings.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC
Add wait time between concurrent builds
Asked by Rajib Dey:

Hello there,

I would like to understand if it is possible to add wait time between concurrent builds please.

Basically I have a Bamboo plan with three agents dedicated to the plan and the concurrent build is set to 3.

Let say a build is executing on one agent, the build on the next agent should start after X mins of the first build and likewise the build on three agent should initiate after the X mins of second build.

Let me know if my statement is not clear.

Thank you!


Answers:
author: Eduardo Alvarenga
body: Hello [@Rajib Dey](/t5/user/viewprofilepage/user-id/4503317),

Welcome to **Atlassian Community!**

There is no such feature in Bamboo. You can work around that by using a script task that will put a delay on the initial job execution.

You will need a common filesystem mounted on all Bamboo agents. This is mandatory so they can communicate and decide on the job execution order.

The following script needs to run as the first task in a Job. It will check if the control file exists, if so it will ask for a file lock. Make sure your NFS/CIFS/Clustered filesystem implementation allows file locking.

If a lock is granted, then it will proceed with some extra checking that will decide if it needs further sleep for X amount of seconds before exiting, but only if the current control file timestamp is lower than the sleep time.

```
#!/bin/bash
# time in seconds
wait_time=20
# this file should be in a NFS/CIFS share where all agents can write to
control_file=/tmp/job_control
curr_time=$(date +%s)

if [ ! -f ${control_file} ] ; then
  touch ${control_file}
else
  control_file_time=$(stat --format=%Y ${control_file})
  exec 100>${control_file}.lock
  if flock 100; then
    sleep_time=$(( $curr_time - $control_file_time ))
    if [ $sleep_time -lt ${wait_time} ]; then
      sleep $(( ${wait_time} - ${sleep_time} ))
    fi
  fi
  echo "Run at second: $(date +%S.%N)"
  touch ${control_file}
fi
```

This is just an example which you can adapt to your needs. It will work in Linux, in Windows you can use PowerShell to achieve similar behaviour.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC
Forcing bamboo to build each commit separately
Asked by Markus:

We have a build plan that take around an hour to execute. If there are multiple commits while a build is running bamboo joins these commits together in the next build instead of separately building each commit in its own build. Is there a setting to change this behaviour so that there is one build for each commit?


Answers:
author: jvelapol
body: There is, indirectly. You're looking to be able to set multiple concurrent builds, I think. Note that this is a global setting that you can override at the plan level, if you want. You can find that setting at:

https://\<bamboo.server.url\>/admin/viewConcurrentBuildConfig.action

Note that you can set that to a discrete (but fixed) number. If you are planning on having dozens/hundreds of commits per \<build time execution time unit (hour in your case)\>, then you're probably going to want to rethink how your build is structured to shorten the time of the build by as much as possible.

Note also that the artifacts from every build (and logs, etc) need to be stored separately, so make sure you understand your space/storage constraints, too.

comments: author: Markus
body: thanks for your reply!

The number of commits is not particularly high in our scenario so we rarely get more than 2 or max. 3 commits combined in build. But I would still prefer to keep the commits strictly separate.

Just to make sure I understand this correctly. If we enable concurrent builds, bamboo would instantely start a new build with only that commit instead of letting the commits queue up and then putting them all together in a new build? How does this behaviour change if we enable concurrent builds but only have a single agent capable of running that build (which is our current setup). Will the commits get combined again or does bamboo start several builds which will then get queued after each other?


author: jvelapol
body: We don't use concurrent builds in our organization, and we've abstracted all of our build agents to be the "same" (basically, all agents have only java \[to run the agent\] and configured docker to run whatever image is needed to support each build's capability), so unfortunately, I can't help you with that. However, it's pretty easy to test that out in a test environment :)


author: Markus
body: thanks for your reply again. I'll research/test that further in our setup.


author: Marcin Gardias
body: Enabling concurrent builds does not _guarantee_ the commits are not 'joined' into a single build but reduces the occurrence of it.

The cases while it still might not work is when Bamboo is not able to react fast enough for the commits happening in quick succession.

It sounds like it should work for you as 2-3 commits per hour is not a problem for Bamboo to handle under normal circumstances.