youngmon/atlassian-qna huggingface dataset:
Error when creating policies
Asked by Bruno Ara?jo:

Hello community,

We have some py scripts that interacts with OpsGenie API to create alerts, policies and other stuff. Those scripts have been running for years but they stopped to run successfully in the past few weeks ( we don't know for how long exactly they stopped working ) and we don't know why. We didn't change the code and/or the Api Keys.

The error is:

**{"code":40301,"message":"You are not authorized to use policies!"}**

We created new api keys and new integration api keys with all permissions but we still have the same problem.

Can you try to give some guidance to us?

Best regards


Answers:
author: Wei Wung
body: Hi [@Bruno Ara?jo](/t5/user/viewprofilepage/user-id/5397875)

Hope all is well! Thank you for reaching out!

I am thinking that there has been a change to your Opsgenie plan that resulted in this error.

Found a couple of tickets with the same error message and it was because the [**Opsgenie Essentials** plan](https://www.atlassian.com/software/opsgenie/pricing) (or **Jira Service Management Standard** plan) doesn't support Alert and Notification Policies.

If the left navigation bar of your Opsgenie Team dashboard doesn't show a **Policies** tab, then your Opsgenie or JSM plan doesn't support Policies.

To upgrade to the Opsgenie Standard plan, one of the Opsgenie Owners will need to go to **Settings** \> **Subscription** to select it.

If this wasn't the case, please feel free to reach out to Support via the blue Chat bubble on the bottom right of your Opsgenie screen or open a ticket at [support.atlassian.com/contact](https://support.atlassian.com/contact), and we will be happy to assist.

Best Regards,

Wei Wung

comments: author: Bruno Ara?jo
body: Thanks, Wei! It makes sense.

Is it possible to add a maintenance window (i.e disabling all notifications ) without using policies?


author: Wei Wung
body: Hi [@Bruno Ara?jo](/t5/user/viewprofilepage/user-id/5397875)

You are welcome!

If your Opsgenie is on the [Essentials plan](https://support.atlassian.com/opsgenie/docs/which-features-are-not-available-in-the-essentials-plan/), you would need to **manually** turn off alert notifications for the integrations within each team. Unfortunately, policies are not available within the [Essentials plan](https://support.atlassian.com/opsgenie/docs/which-features-are-not-available-in-the-essentials-plan/). On the other hand, you can use the **[Integration API](https://docs.opsgenie.com/docs/integration-api)** to [List Integrations](https://docs.opsgenie.com/docs/integration-api#list-integrations), then [Disable](https://docs.opsgenie.com/docs/integration-api#disable-integration) and [Enable](https://docs.opsgenie.com/docs/integration-api#enable-integration) them during the maintenance.


Tags: cloud
Send opsgenie alert tags to Jira service management.
Asked by Pablo Renzo:

Hi

Is there any configuration to be done to send the tag that is configured in an Opsgenie alert to the requirement in Jira Service Manager?

Currently everything generated in JSM arrives with the tag fromOG.

![Captura desde 2024-01-03 17-03-57.png](/t5/image/serverpage/image-id/298804iB924A7FD9D57D8EA/image-size/large?v=v2&px=999 "Captura desde 2024-01-03 17-03-57.png")


Answers:
author: Brennan Kiely
body: If you integrate using the newer JSM integration, you can customize the data that gets sent to different fields in JSM.

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/>


Tags: cloud
How to send Zabbix Recovery Alerts as a new OpsGenie Alert, instead of updating the original?
Asked by Mikel Stous:

Happy New Year!

We don't use OpsGenie for ticketing, but as a way to triage alerts. When we open it, then through automation it opens as a Jira ticket and the engineers work it there.

We are pleased with the OpsGenie API integration, as we've had trouble with emailed Alerts.

While we're slowly moving to Zabbix, I've noticed that through the OpsGenie API, Zabbix Recovery Alerts will update the original OpsGenie Alert and not create a new one.

Our Desk prefers to receive this separate Zabbix Recovery Alert so it's more visible to them.

I've tried several ways to work around this but haven't found the secret yet. Was hoping someone had a solution.

Mikel


Answers:
author: Mikel Stous
body: I found a workaround.....better but not perfect as the tags don't pass.

I cloned my email media type and removed all but the Problem recovery template.

![Screenshot 2024-01-04 095755.png](https://community.atlassian.com/t5/image/serverpage/image-id/298926i03418E3A74F0319D/image-size/large?v=v2&px=999 "Screenshot 2024-01-04 095755.png")

Since we use a user account named *opsgenie.alert* that has the Opsgenie media added to it, I then add this Recovery Alert email media alongside.

![Screenshot 2024-01-04 095522.png](https://community.atlassian.com/t5/image/serverpage/image-id/298930i620179300BBBE1CD/image-size/large?v=v2&px=999 "Screenshot 2024-01-04 095522.png")


Tags: api
How to configure environments
Asked by rene aigron:

I'm looking for the steps how to configure multiple environments like dev, staging, prod.


Answers:
author: Ayrijit Swain
body: Hi Rene,

If you are looking to create multiple deployment environment like Dev, Staging , Prod for your bamboo plan, you can refer to the KB article \> <https://confluence.atlassian.com/bamboo/creating-a-deployment-environment-338363440.html>

Please refer to the "related content" on the page for additional information on configuring deployment environment.
is there anybody offering a saas version of bamboo
Asked by Paul Wignell:

I'm a little confused as to the current state of Bamboo and I would like for somebody to help me out....my understanding is that Bamboo is only self-hosted (bamboo data centre) and there are no plans to turn into a saas solution....if you want saas, you need to migrate to bitbucket pipelines, is this correct


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

Some partners offer server-based Bamboo systems as a managed service, but it's not "Cloud" beyond "it runs on someone else's kit"


author: Martyna Wojtas
body: Hi [@Paul Wignell](/t5/user/viewprofilepage/user-id/5259404), yes, this is correct
How to pass multiple command to the container while running a docker in bamboo
Asked by chatli vlogs:

example to pass multiple commands to the runner docker as an interactive session


Answers:
author: Eduardo Alvarenga
body: Hello [@chatli vlogs](/t5/user/viewprofilepage/user-id/5260268),

Welcome to **Atlassian Community!**

You can use a shell wrapper such as the one below to achieve multiple commands. Your container needs to have a valid shell that supports it. For example, with bash:

```
/bin/bash -c "command1 && command2"
```

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: chatli vlogs
body: ![Screenshot 2023-07-05 at 12.51.46 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/266770i69DC7637457C5357/image-size/large?v=v2&px=999 "Screenshot 2023-07-05 at 12.51.46 PM.png")

If you see my screenshot i can able to pass only one command how to add multiple commands in this how can i add a script to this by passing commands


author: Eduardo Alvarenga
body: Hey [@chatli vlogs](/t5/user/viewprofilepage/user-id/5260268)

Instead of:

```
ls -ltr
```

Replace it with:

```
bash -c "ls -ltr && command2"
```

And you should be good.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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


author: chatli vlogs
body: ![Screenshot 2023-07-05 at 1.53.50 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/266797iE065A8D595CF811B/image-dimensions/482x284?v=v2 "Screenshot 2023-07-05 at 1.53.50 PM.png")

Thankyou it is working for me and one more query, iam having inline script that i need to run in docker container, once docker runner configure and executed i need to run this script please suggest on this as well
Why my version of bamboo dont have << create a plan branch when a pull request is created>>
Asked by Dineshmathiazhagan:

I am trying to set up a VCS planbranch plan and in default configuration branches tab I do not see the option - create a plan branch when a new pull request is created


Answers:
author: Eduardo Alvarenga
body: Hello [@Dineshmathiazhagan](/t5/user/viewprofilepage/user-id/1531254),

The "*When a pull request is created*" option will only be available when supported Repositories are added to the Plan.

Check your Plan's Repositories tab for any Bitbucket Server repositories. On recent releases of Bamboo from 9.1, GitHub and Bitbucket Cloud repositories will also allow "*When a pull request is created*" to be selected.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Dineshmathiazhagan
body: Thank you so much - I figured out why it wasn't working out - I had git repository configured in my trial bamboo - and no link with bitbucket - when I did link with bit bucket I was able to see the option.


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

I'm happy to know you have found a solution to it ;-). ++Kindly mark my answer as ***Accepted***++ so other community members can benefit from it.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC
Using the Python API, how do I get the build statuses of different branches?
Asked by Jonathan Herron:

I have a build status bot that monitors the statuses of various plans. I also want it to monitor the statuses of all the branches of all the plans. Once I had the plan_key and branch_name, I used to be able to do this with:

branch_info = bamboo.get_branch_info(plan_key=plan_key, branch_name=branch_name)

branch_number = branch_info\['latestResult'\]\['number'\]

But it's breaking on the second line now. Looks like branch_info doesn't hold the latestResult anymore?

Also, I tried using bamboo.build_latest_result(plan_key=branch_key) and that also doesn't work. I might be missing something silly.


Answers:
author: Shashank Kumar
body: Hello Jonathan,

I am not an expert in Python, but you can get these info by Bamboo REST API's

1) Use the below REST API to filter all the branches for a plan

**/rest/api/latest/plan/plan-key/branch ,** refer <https://docs.atlassian.com/atlassian-bamboo/REST/8.2.5/#d2e2400>

2) Using the below API you can get the branch status

**/rest/api/latest/result/\<branch-key\>,** refer <https://docs.atlassian.com/atlassian-bamboo/REST/8.2.5/#d2e3305>

You can refer the below community article for details \> <https://community.atlassian.com/t5/Bamboo-articles/How-to-list-plan-build-status-using-REST-API/ba-p/1142159>

comments: author: Jonathan Herron
body: Thanks for your reply! I think it's specific to the Python API then because I was able to get the latest result through rest using **/rest/api/latest/result/\<branch-key\>**

But in Python, bamboo.latest_result(plan_key) doesn't work if I use the branch_key for the play_key argument.


Tags: branch

python
What is the Yaml spec scan interval and is it configurable?
Asked by Sean Conlon:

I'm using some Bamboo YAML Specs, and I can't find anywhere in the docs (or config) that explicitly states the interval that the Spec-enabled Link Repo is scanned for updates to a bamboo-specs/bamboo.yaml file.

What is the Spec scan interval and is it configurable? If configurable, where?

<br />

Thanks.


Answers:
author: Eduardo Alvarenga
body: Hello [@Sean Conlon](/t5/user/viewprofilepage/user-id/723600)

If you are using Bamboo Specs on a Bitbucket Server or Cloud repository, Bamboo will be notified automatically through the Application Link interface once a commit to the Specs code is pushed and will trigger the Specs scan.

If you are using a different Git repository type, you'll have to set webhooks to notify Bamboo about the change:

* [Enabling repository-stored Bamboo Specs - Additional step for other repositories](https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html#EnablingrepositorystoredBambooSpecs-Additionalstepforotherrepositories)

Alternatively, if you are not using a Bitbucket Repository with an Application Link and don't want to enable a webhook for every repository, you can enable a Global RSS Polling scheduler that will scan all Specs-enabled Linked Repository at once on their default branches according to a cron entry. [Configure the following property](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html) to your Bamboo configuration:

```
-Dbamboo.rss.polling.enabled=true
```

This is a global setting and needs to be used with caution as it may cause sudden network bursts on very busy systems with a high number of repositories.

After enabling the system property and restarting Bamboo, set a quartz cron schedule after enabling the following:

* **Bamboo Administration** \>\> **General Configuration** \>\> **Enable polling for Repository Stored Specs changes**

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
bamboo tool installation I am getting error while setting up as Error accessing database: org.postgr
Asked by Sunil Obi:

![image.png](/t5/image/serverpage/image-id/263059i6DC7C2FC409C926B/image-size/large?v=v2&px=999 "image.png")  

while configuring the things I am getting above error how should I resolve it??  
I don't have postgreysql installed on my localhost


Answers:
author: Eduardo Alvarenga
body: Hello [@Sunil Obi](/t5/user/viewprofilepage/user-id/5242935),

Welcome to **Atlassian Community**!

Bamboo requires a database to function. Follow the instructions on the [Connect Bamboo to an external database](https://confluence.atlassian.com/bamboo/connect-bamboo-to-an-external-database-289276815.html) guide and modify the Database URL accordingly.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
API endpoint to delete build result
Asked by wareczek:

Is there a way in REST API to delete build result by build ID? I can't see endpoint like this:

DELETE /api/latest/result/{projectKey}-{buildKey}-{buildNumber}


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

Deleting build results through the REST API is yet to be implemented in Bamboo.

Please use the following HTML form to accomplish the same task:

```
$ curl -u admin_user:admin_pass \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'x-requested-with: XMLHttpRequest' \
  -H 'x-atlassian-token: no-check' \
  -d 'buildKey=<PLAN_KEY>&buildNumber=<BUILD_NUMBER>' \
  'https://bamboo.mydomain.net/build/admin/deletePlanResults.action'
```

**Note**: This is an HTML form. It may change over releases, meaning it may not work in future versions of Bamboo.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: rest-api

server
Artifact not available in DropDown "Artifact name" in deployment task "Artifact download"
Asked by Oliver Paals:

Hello,

I created a build plan with 5 jobs in 4 stages. There are two artifacts defined: "SourceCode" and "Setup". Both are defined as "Shared".

For this plan there's a deployment project with a "Artifact download" task. In this task I would like to get the setup file from artifact "Setup".

In the drop down list "Artifact name" I get the options "All artifacts" and for individual artifacts just "SourceCode". "Setup" is missing.

I have no idea how to solve this or what could be wrong.

Bamboo version is 8.2.

Any help is welcome

Oliver


Answers:
author: Oliver Paals
body: Found the reason by myself: I mixed up two deployment projects.

In the deployment project where "Setup" was not available it was not defined as shared.
GitHub App authentication
Asked by Daniel Cave:

Our security team is looking to disable all personal access tokens in our GitHub installation, one of the Dev teams is using Bamboo as their CD tool.   

We are being asked to pivot to using GitHub Apps <https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps> to authenticate.  

Is this possible given the product?


Answers:
author: Eduardo Alvarenga
body: Hey **Daniel**,

You can add the following [system property](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html) to your Bamboo settings to forbid users from creating PATs:

*

  ```
  -Dbamboo.access.token.user.max=0
  ```

**Users will see the following when trying to add a PAT:**

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

**You can also block the following URLs on your Reverse Proxy:**

* \<Bamboo_URL\>/profile/userAccessTokens.action
* \<Bamboo_URL\>/profile/createAccessToken.action

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Daniel Cave
body: This does not solve my issues, which is how can we connect to GitHub from Bamboo using a GitHub App.

I believe this is actually not possible however I wonder if someone has found a workaround.  

Blocking PAT creation needs to happen in GitHub which I already have a solution for.


author: Eduardo Alvarenga
body: Bamboo will interact with GitHub Repository as either a traditional Git Repository (either via SSH or HTTP). It also supports seamless authentication and GitHub Enterprise accounts, but it doesn't have any native support for GitHub Apps.

* [Bamboo - GitHub](https://confluence.atlassian.com/bamboo/github-289277001.html)

If you wish to use GitHub Apps, you may still run a [script task](https://confluence.atlassian.com/bamboo/script-289277046.html) that would invoke your program that will interface with GitHub. You can then use it before any other subsequent interactions with the repository.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
How can I subscribe all users to a specific component?
Asked by Phoebe Black:

When adding a new component I want to subscribe all users to it in one go, without having the manually select it for each individual user.

Is there a way this can be done?


Answers:
author: Egor
body: Hey Phoebe,   

Thanks for reaching out to Atlassian Community!  

What you can do is use our API in order to update your subscribers and add the newly created component, please see - <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-statuspage/>   

Another option would be to disable the component subscription feature <https://support.atlassian.com/statuspage/docs/enable-component-subscriptions/> that would automatically subscribe all of the users to all updates.   

I hope this helps, please let me know if you got any other questions.

Best Regards,  
Egor


Tags: cloud
Limit visibility of incidents on statuspage to active incidents only?
Asked by serviceaccountdatacan:

Is there a way to limit the visibility of incidents on statuspage to active incidents only? I have it set to only show 30 days but it has been requested that we only show active incidents only.


Answers:
author: Talar Pavlovic
body: Hi there,

Depending on your plan + page type, there are CSS/JS customisations you could make to display or change the amount of history you show on your page. Please see more info here:

[https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/](https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/?)

Regards,  
Talar


Tags: cloud
Connect statuapage to auto telephony calling system
Asked by Amit Levi:

I need to add an option that some of the subscribers will be notified upon incident creation by a telephone call. I am looking for an automatic system that will call certain numbers and play a predefined recorded message

Does anyone implement such a solution with the Statuspage?


Answers:
author: Egor
body: Hey Amit,  

Thanks for reaching out to Atlassian Community!  

At the moment, Statuspage is not able to send calls to specific numbers/users when there's an incident.   

What you can try is Opsgenie alerts. The idea is that once there's a new incident in Statuspage, it can trigger an alert in Opsgenie, which will notify the on-call user. Please see <https://www.atlassian.com/software/opsgenie> and the integration between Statuspage and Opsgenie - <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-statuspage/>   

Please let me know if you have any further questions.   

Best Regards,  
Egor


Tags: cloud
Change uptime interval measurement
Asked by Jacob B_:

Hi,

I was wondering if you have any way of altering the measurement of uptime.

Say that I have a business that only needs to be functioning between 9-5, meaning all my systems/components is measured by its uptime during those "business hours". Is it possible to change in Statuspage so the systems/components are only measured between those hours?

Br Jake


Answers:
author: Egor
body: Hey Jake,  
Thanks for reaching out to Atlassian Community!  

While this functionality is unfortunately not currently available, we do have an open Feature Request that is being reviewed by our engineering team regarding the implementation of more granulated uptime showcases, including the possibility to select what time to show.

I have added this ticket to that request, and as Statuspage feature requests are currently for internal access only If you ever need to reference the request to ask about its progress, the ID is STATUS-150.

I would recommend keeping an eye out on our community page for any news about feature updates:  
<https://community.atlassian.com/t5/Statuspage/ct-p/statuspage>

In the below link you can read about our feature implementation policy if you like:  
<https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

<br />

Please let me know if you have any further questions.

Best Regards,  
Egor


Tags: cloud
Inserting custom text
Asked by Al:

Is it possible to Insert text either between the status message and the components or above or below the status legend. We are looking to add a disclaimer message for our customers


Answers:
author: Howard Nedd
body: Hi [@Al](/t5/user/viewprofilepage/user-id/1253124) ,

Please have a look at the customization cookbook:

<https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/>

Hopefully this gives you a push in the right direction

Regards

Howard


Tags: cloud
Statuspage API Uptime - Date range
Asked by Martyn Arbon:

Hi,

I am trying to pull data from the Statuspage API for component uptime.

What ever I try and do when I specify PartialStartDate \& PartialEndDate I just get the default values instead.

Anyone tried this and got an example (curl)


Answers:
author: Alan Violada
body: Hey Martyn! This was already resolved on the support ticket you created, but just posting here for reference as well:

The parameters you want to be using in your request are "start" and "end" instead of **PartialStartDate** and **PartialEndDate** - That should get you the query results with the correct filter.  
[API Uptime Endpoint](https://developer.statuspage.io/#operation/getPagesPageIdComponentsComponentIdUptime)

Cheers,

Alan


Tags: cloud