youngmon/atlassian-qna huggingface dataset:
v2/alerts/requests/ returning 404
Asked by Joel Bradley:

Hi,

So recently my requests sent to <https://api.opsgenie.com/v2/alerts/requests/> are returning 404 errors.

If I don't include the authorization header I get could not authenticate, requests I send to <https://api.opsgenie.com/v2/alerts/> work fine, and it worked okay last week.  

No valid request id is working.  

{  
var uri = $"<https://api.opsgenie.com/v2/alerts/requests/{requestId>}";  
client.Headers.Add(HttpRequestHeader.Authorization, genieKey);  
request = client.DownloadString(uri);  
}

I'm not sure what I'm doing wrong.


Answers:
author: Connor Eyles
body: Hi [@Joel Bradley](/t5/user/viewprofilepage/user-id/4654310)

Thanks for reaching out!

So in relation to this REST call <https://docs.opsgenie.com/docs/alert-api#get-request-status>

The **Get Request Status** endpoint is used to track the status and alert details (if any) of the request whose identifier is given.

I would like to point out I am not a C# specialist but in best efforts provide some information that may help you with your troubleshooting here. What I can do is share an example for this request using **C# - RestSharp**  

```
using RestSharp;

using RestSharp.Authenticators;

var client = new RestClient("https://api.opsgenie.com/v2/alerts/requests/913fb485-2a30-4b03-b9cb-6207599669d9");

client.Timeout = -1;

var request = new RestRequest(Method.GET);

request.AddHeader("Authorization", "GenieKey eb243592-faa2-4ba2-a551q-1afdf565c889");

IRestResponse response = client.Execute(request);

Console.WriteLine(response.Content);
```

Something I have noticed from your code is that your genieKey is not enclosed with "" like it is in my example code. You could try that and see if it works on your end!

Let me know how you go with this one or have any follow up questions.

Thanks,

Connor


Tags: cloud
In the "Create Major Incident" dialog, can the severity options be customized?
Asked by erich2048:

Please see the discussion from the same question asked in Jira Service Management questions area:

<https://community.atlassian.com/t5/Jira-Service-Management/Customize-Severity-levels-when-creating-a-Major-Incident/qaq-p/1572101>

This particular dialog seems to have hard-coded options for the severity field value, which populates an extended property in the OpsGenie Incident object when a major incident is created from a Jira Service Management Incident (and linked together).


Answers:
author: Samir
body: Hi [@erich2048](/t5/user/viewprofilepage/user-id/4310183) ,

Could you elaborate what the question is here? Are you not seeing the severity field option when creating a major incident from a JSM incident?
Dashboard - Can I See if a Note Exists?
Asked by Randy Ross:

When I am looking at a list of alerts, I would like to see a notification that there is an note already on the alert and how many notes if more than one. Is that possible?


Answers:
author: Samir
body: Hi [@Randall Ross](/t5/user/viewprofilepage/user-id/4685186) ,

When looking at the Alert dashboard, there isn't a way to tell which alerts have note(s) added to them without clicking into the individual alert to check the notes.

We have a feature request to be able to *query* for alerts that have note(s) added to them, but currently this isn't an option.

We do have an [Alert API](https://docs.opsgenie.com/docs/alert-api) that has a [List Alert Notes](https://docs.opsgenie.com/docs/alert-api-continued#list-alert-notes) request, so you could write a script to programmatically find which alerts have notes via API, but there isn't a way to do this within the Opsgenie UI at this time.

Let us know if you have anymore questions!

Thanks,

Samir

comments: author: Randy Ross
body: Thank you.
Updating an incident?s priority will also update its Responder Alerts? priority
Asked by Cuong Trinh:

I want to downgrade the incident's priority that will also update its Responder Alerts' but I could not find the way from Opsgenie incident rule or policies. Anyone could help me please.

Thanks


Answers:
author: Connor Eyles
body: Hi [@Cuong Trinh](/t5/user/viewprofilepage/user-id/1707504)

Thanks for reaching out :)

Currently we dont have this functionality however we do have a feature request logged in our system for this request (OGS-407).

At any point, you can reach out to us mentioning the reference number and we can provide you with the latest update.

However we do have the functionality when the priority is increased both the Owner and Responder alerts also increase in priority.

Thanks,

Connor


Tags: cloud
How to instruct SonarScanner plugin to pick "sonar-project.properties" file sitting in my project?
Asked by hmozaffari:

I see the following note on SonarScanner configuration page on Bamboo:

**"NOTICE: project configuration is read from the sonar-project.properties file in your repository.**"

But when I put my custom sonar-project.properties file in my repository it doesn't recognize it.

As logs show it seems it is looking for property file in where sonar scanner installation is:

```
Scanner configuration file: ..../sonar-scanner-4.0.0.1744-linux/conf/sonar-scanner.properties
```

The reason I want to read it from property file instead of passing parameter to command line is I want to save them in source code repository with code and be able to version control it.

How can I instruct SonarScanner plugin to pick my "sonar-project.properties" file?


Answers:
author: hmozaffari
body: I realized I had a typo in name of property file. Indeed, plugin recognizes the property file and picks all values from file.


Tags: sonarqube
When pull request is created (for-pull-request?)
Asked by Dion Campbell:

Hello,

Currently, we have our system setup for Bamboo branch creation (for-new-branch) when a branch is created in Bitbucket. We would prefer to have Bamboo plan branch creation when the Pull Request is created but I want to be sure of the impact of changing it.

A) Is the "for-pull-request" setting correct in the YAML for "When pull request is created"?  
B) Will the mainline branch (i.e. master) still auto-build when the PR is merged?

Any input would be appreciated...


Answers:
author: Alexey Chystoprudov
body: a) yes, <https://docs.atlassian.com/bamboo-specs-docs/7.2.3/specs.html?yaml#handling-new-branches>

b) yes, if you have trigger to build master branch on repository change

comments: author: Dion Campbell
body: Thank you for the reply Alexey. Our Bitbucket is setup essentially as a mono-repo. The "master" branch is one version, then we have branches that represent other versions and releases off those versions. What we wish to have happen are the following steps.   

1) A developer creates a branch in Bitbucket off a mainline branch.  
2) No builds automatically start in Bamboo (i.e. for-pull-request).  
3) The developer can make multiple pushes to the remote branch without it triggering a build.  
4) Merge is not allowed until at least one clean build is finished (currently configured this way)  
5) The developer creates a PR and a build is triggered on the remote branch.  
6) When the build finishes clean, the Developer merges into the mainline branch (may or may not be 'master', it could be any of our mainline branches.  
7) When the merge occurs to the mainline branch, a build is triggered.

Currently, we are set up with linked repositories and the Bamboo trigger is a default "Bitbucket Server repository triggered"


author: Dion Campbell
body: Hey Alexey, I have it figured out and configured how I need it. Thank you again for your assistance.
how to create yml file for build CI pipeline to version control it
Asked by LayMui-Toh:

currently bamboo CICDplan is configured using the UI

to make it easier to track changes by team members,

how can I create yml file to version control the build and deployment pipeline?

how to convert the UI task to yml file and add as part of the source code?


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@LayMui-Toh](/t5/user/viewprofilepage/user-id/4315446), welcome to the Atlassian Community!

Presumably you have figured this out by now, just in case you are using an older Bamboo version which only supports Bamboo Java Specs - this feature is available as of [Bamboo 7.1](https://confluence.atlassian.com/bamboo/bamboo-7-1-release-notes-1013854809.html), you can follow the steps outlined in [Exporting existing plan configuration to Bamboo YAML Specs](https://confluence.atlassian.com/bamboo/exporting-existing-plan-configuration-to-bamboo-yaml-specs-1018270696.html):
> In order to export an existing build plan to Bamboo Specs source code:
>
> 1. If you don't have Bamboo Specs project, [create one](https://confluence.atlassian.com/bambooserverm/latest/bamboo-specs/bamboo-java-specs/create-a-bamboo-specs-project-using-maven-archetype).
> 2. Go to your build plan and select**Actions \> Configure plan.**
> 3. On the plan configuration page, select**Actions \> View plan as YAML Specs.**
> 4. Copy generated YAML code to your code editor by putting it into the bamboo-specs/bamboo.yaml file.
>
> To export an existing deployment plan to Bamboo Specs source code:
>
> 1. If you don't have Bamboo Specs project, [create one](https://confluence.atlassian.com/bambooserverm/latest/bamboo-specs/bamboo-java-specs/create-a-bamboo-specs-project-using-maven-archetype).
> 2. Go to your deployment project and select**... \> Edit project.**
> 3. On the deployment project configuration page, select**... \> View project as YAML Specs.**
> 4. Copy generated YAML code to your code editor by putting it into the bamboo-specs/bamboo.yaml.

Cheers,  
Steffen


Tags: devops

spec

yaml
Trouble using bamboo.yaml on multiple bambooinstance
Asked by TDG Energizer:

Hi,

i have a bamboo.yaml in my repository which is used on 2 diffrent bambooinstances.

The Buildplans differ on those instances in some Tasks, which was easy to solve with global-variables and conditional tasks.

But i have problems settings Group-Permissions within the yaml cause the groupnames on bambooinstance-1 and bambooinstance-2 are not equal!

I tried to set the groupname as global-variable too:

```
plan-permissions:
  - users: []
    groups: ${bamboo.devteam}
```

but its no resolving the variable and a yaml parse error occurs with something like "group not found ${bamboo.devteam}"  

Is there a way to solve this ? Or any bestpractise how to use multiple bambooinstances on the same project ?


Answers:
author: Alexey Chystoprudov
body: It's possible to define server name where YAML and Java specs will be applied, see <https://docs.atlassian.com/bamboo-specs-docs/7.1.1/specs.html?yaml#multiple-bamboo-servers>

comments: author: TDG Energizer
body: Thanks :) Is there a way to find the Server-Name without beein admin ? Or is this equal to the url ?


author: Alexey Chystoprudov
body: It's added as postfix to every page title, like here name is "server-gdn-bamboo"![Screenshot 2021-03-16 at 11.36.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/134573iB22A597B8D535E98/image-size/large?v=v2&px=999 "Screenshot 2021-03-16 at 11.36.43.png")


Tags: yaml
How to get release build details for a given plan in bamboo using REST API
Asked by Yasashree:

I am trying to pull build details for a release in the bamboo plan using Rest API, could you provide me with some helpful information.

As you can understand I am new to this, please do help.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

[@Yasashree](/t5/user/viewprofilepage/user-id/4287712) Welcome to the community :)

Do you mean like this ?

<https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bamboo.py#L474>

You can find detail info here:

<https://docs.atlassian.com/atlassian-bamboo/REST/7.2.2/>

via next url:

/result/{projectKey}-{buildKey}-{buildNumber}

Hope it helps

comments: author: Yasashree
body: How can I find build key and build number using API


author: Gonchik Tsymzhitov
body: I would say you can start from latest build, where build based on the plan key .


author: Yasashree
body: Thanks for help


author: Gonchik Tsymzhitov
body: You're welcome!


Tags: rest-api
Bamboo upgrade question
Asked by Bill Parlock:

I have upgraded to Bamboo version 7.2.1 from 7.1.3 on one of our test systems. As part of testing I am trying to rollback to the original version. I have addressed a couple of errors from the Bamboo log so far but what I currently see are database errors. The errors include "BootstrapUpgradeHelper: Error getting database connections" and "Connections can not be acquired from underlying database". So any Bootstrap validation tasks that need to connect to the database fail. I can bring up the upgraded Bamboo version again with no problem. I am wondering if there are additional changes I could make to address this, or is it just a matter of having to take a database snapshot first and restore it if I need to rollback?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

[@Bill Parlock](/t5/user/viewprofilepage/user-id/3734252) Please, to restore a database snapshot and then use the old installation folder please.
Conditional task replacement issue
Asked by Robert_Blij:

I have a strange scenario I am struggling to figure out.

I have two sequential conditional tasks on a build plan. The condition is on a Bitbucket variable coming in to the build called bamboo.repository.pr.key

The first step I check if it exists, if it does the command runs with the variable being substituted with the actual key from Bitbucket and the command runs fine.

The second step I check if it does not exist and I run a build on the base branch using a different variable.

Interesting once the variable is substituted in the first step, the second conditional does not find it and therefore also runs instead of being skipped.

This is the log where you can see it being odd, the condition all of a sudden says that variable does not exist.

simple 11-Mar-2021 14:40:21 All conditions for task 'Sonar Scan PR' were met. Conditions: Variable bamboo.repository.pr.key exists

command 11-Mar-2021 14:40:21 Substituting variable: ${bamboo.repository.pr.key} with 19

command 11-Mar-2021 14:40:21 Substituting variable: ${bamboo.repository.pr.sourceBranch} with feature/SonarBuildTest

command 11-Mar-2021 14:40:21 Substituting variable: ${bamboo.repository.pr.targetBranch} with dev

\*\*\*\<logs cut here\>\*\*\*

simple 11-Mar-2021 14:41:16 All conditions for task 'Sonar Scan Branch' were met. Conditions: Variable bamboo.repository.pr.key not exists

command 11-Mar-2021 14:41:16 Substituting variable: ${bamboo.repository.git.branch} with feature/SonarBuildTest

Does the variable only become available to the job if it is referenced in the argument? That is the only thing I can think of apart from it being a bug (or something I am overlooking of course)

Any help would be appreciated! :)

Thanks


Answers:
author: Alexey Chystoprudov
body: Don't use "bamboo." prefix and see how it goes

comments: author: Robert_Blij
body: Many thanks Alexey that worked.
Billing inquiry about multiple status pages - help!
Asked by James King:

I have setup a trial statuspage subscription, created multiple public pages (for each of our customers) and want to go live.

Unfortunately, I am unclear on whether I need to pay for individual subscriptions for each of the public pages I have created under my account, or whether one subscription will allow me to run multiple pages and just be limited by the subscription count / team logins etc.

The support team have left me waiting a week and could do with any help I can get.


Answers:
author: Nick Coates
body: Hi James,

Nick from the Broadcom team here, a long-term Statuspage customer!

You will need to pay for each page separately. Pricing can be found here: <https://www.statuspage.io/pricing>

You can activate your page by clicking on the 'Activate page' button in the left hand sidebar which will then take you to the payment page to select a plan. My recommendation would be to start small and you can grow as you need to.

Hope this helps!  

Thanks,  
Nick Coates

Product Owner - Service Status, Broadcom
Can I bulk add subscribers to a new group in my audience specific Statuspage?
Asked by Paul Hodkinson:

Hi,

I'm familiar with importing new subscribers to Statuspage using csv imports and now have hundreds assigned to various groups.

I want to add a new group and assign about 300 users to that group, in addition to groups that they are already members of. Has anyone got experience of doing this in bulk - can it be done? An apparent recurrence of an import issue that came up a couple of weeks ago after patching is hampering my ability to test.

Thanks in advance,

Paul.


Answers:
author: Zach
body: Hey Paul,

I know that you and I had a discussion around this very subject in a support ticket - but I figured I would surface that same information here for anyone that might be curious.

Right now, the CSV importer does not have the ability to edit existing Page Access Users. In order to do that one will need to either use the available endpoints documented on developer.statuspage.io, or using the management portal UI. That all being said, please do feel free to reach out to our support team if you'd like the update functionality added to the existing CSV importer feature! The more people reach out the more our product management team is able to see the demand for the proposed functionality.

comments: author: Eric Darsey
body: Hi Zach,

Is there an update to this answer?

When I try to use the developer API to update an existing page-access-user via <https://developer.statuspage.io/#operation/patchPagesPageIdPageAccessUsersPageAccessUserId>, I receive a 500 error.

I know that this can be done manually through the gui, but that is time-consuming to do with 100s of users.

Do you have some insight here?
Does anyone else have an issue uploading a logo or header?
Asked by rjl Brands:

When under the Your Page tab \> Customize page and email \> then when clicking upload image for cover image or fav icon the site won't let you scroll and the only thing to do is refresh and when attempting to drag and drop the site goes away and the image appears. As you can see at the bottom the site gets cut off. Any way around this to upload the images?

![Screen Shot 2020-05-19 at 10.51.55 PM.png](/t5/image/serverpage/image-id/95562i1719762119DF7B4A/image-size/large?v=v2&px=999 "Screen Shot 2020-05-19 at 10.51.55 PM.png")


Answers:
author: Mark Campbell-Vincent
body: Hi [@rjl Brands](/t5/user/viewprofilepage/user-id/3930088) -

I can't say I have seen this issue before. Could you provide what browser you're seeing this on? Have you tried other browsers as well? If not, please let me know if this still occurs when scrolling on a different browser.

Using the "Inspect" feature on your browser could shed some insight on this as well. If you right click on the blue "Upload image" button and choose "Inspect", does it show you any errors?
Status page - Pagerduty tagging
Asked by Josep Pi?ol:

Greetings,

I've been trying to set up Statuspage email incidents templates using pagerduty taggs with moustache (see this for more information [https://support.atlassian.com/statuspage/docs/pagerduty-mustache-tags/)](https://support.atlassian.com/statuspage/docs/pagerduty-mustache-tags/)  

Nothig that I've tryied works. When I create an incident to test the templates what it returns is something like the following: "Service: {{pagerduty.incident}}" without any value at all. Of course our Statuspage is linked with our Pagerduty, but Pagerduty uses the API key v2, and I've read this " Please note that Statuspage currently doesn't support the PagerDuty v2 payload." which makes me wonder, maybe they don't understand each other?

Anyone had this problem? Did you find the solution?   

Thanks.


Answers:
author: George Zippo
body: For this exact example I used {{pagerduty.incident.service.name}} which returned the PagerDuty Service name.

Other examples I have managed to see working are:

Incident summary: {{pagerduty.incident.trigger_summary_data.subject}}  
Incident Start Time: {{pagerduty.incident.created_on}}  
PagerDuty Status: {{pagerduty.incident.status}}

Assigned to Name: {{pagerduty.incident.assigned_to_user.name}}  
Assigned to email: {{pagerduty.incident.assigned_to_user.email}}  
PagerDuty incident reference: {{pagerduty.incident.incident_number}}

comments: author: Josep Pi?ol
body: Thanks a lot George! We already found another way of getting what we wanted thou.

Best Regrads,


Tags: pagerduty

tag
Best Practice for Displaying Release Schedule
Asked by Sean Drummy:

We'd like to create a page that is publicly available that displays our list of releases. Ideally this has some color coding or the like because we publish our release roadmap far in advance and "lock in" the specific date about a month before the release. Is there a way to do this? I know you can put scheduled maintenance in a list format on the status page but the issue with this is the dates may change.

Is Status page the best place to publicly display release schedules or is another Atlassian product better suited?


Answers:
author: Jake Bartlett
body: Hi Sean, Jake here with the Statuspage team.

Statuspage is a tool meant for improving incident communication. Aside from the Scheduled Maintenance functionality, we don't have any specific features that would help you communicate about upcoming events/changes.

If you want to use Statuspage for this, you could create the Scheduled Maintenance, and if the dates change, you can change those dates and update the maintenance with a note about the change.

Alternatively, here are a couple other Atlassian tools you may want to check out:

* [Product Roadmaps in Jira](https://www.atlassian.com/agile/product-management/product-roadmaps)
* [Roadmapping in Trello](https://blog.trello.com/going-public-roadmapping-with-a-public-trello-board)
Geographical filters on status updates
Asked by Edik Mkoyan:

Twilio serves globally, however, our company is interested in Twilio status updates on for the US and Canada, yet. The updates for the other companies are noise for us and it makes hard to configure alerts based on the statuspage updates in Datadog's events stream. What is the best way to overcome this issue?


Answers:
author: Zach
body: Hey Edik!

Would tuning your subscription to only have the necessary components suite your needs? This would allow for you to subscribe only to the longcode, and shortcode, components so that you would only be notified of incidents affecting those components.
Why degraded incident does not show in yellow indication in uptime of a component?
Asked by k_jibin_m:

I was in an impression that when you create a degraded incident associated with a component, it will show a yellow bar in uptime. But it still shows all green.


Answers:
author: Jake Bartlett
body: Hello, components set to "degraded performance" or "maintenance" aren't counted in the uptime showcase. From our knowledge base:
> Our stance is that while degraded performance (i.e. things are just running slow) does affect user experience, it's not technically "downtime". We also think scheduled maintenance generally shouldn't factor in and this feature is more for displaying unplanned downtime.

You can find more information [here in our knowledge base](https://support.atlassian.com/statuspage/docs/display-historical-uptime-of-components/).
How does the Datadog integration subscribe for third party status updates?
Asked by Edik Mkoyan:

It requires only the statuspage address and a tag. Here is what I am talking about?  
<https://www.datadoghq.com/blog/datadog-statuspage-io-integration/>  

I think there should be a subscription webhook that sends Datadog event endpoint address to the statuspage, however, I can't find any documentation on that webhook. Does it exist?


Answers:
author: Zach
body: Hey Edik!

If you're looking for a webhook that notifies Datadog on if a status page has been updated, then it could be possible to setup a webhook subscription (should the page allow webhook subscribers).

On the other hand if you're looking for more information on how the Datadog integration is initialized/setup, then I'd suggest reaching out to Datadog support to get more insight on what may be happening behind the scenes whenever the integration is created with Statuspage.