youngmon/atlassian-qna huggingface dataset:
How can I temporarily disable OpsGenie from triggering notifications?
Asked by Wojtek Szczerbinski:

Hi,  

In our organization, we create many post-mortem reports.  
I would like to create many incidents so I can generate the post-mortem forms BUT without alerting everyone in the organization. Let's say I would like to disable the notifications for 1hour. How can I do it?   

I read about maintenance mode and policies but it seems a bit complicated.  
Can you explain to me in an easy manner how I can do this?   

Thanks


Answers:
author: John M
body: Hi [@Wojtek Szczerbinski](/t5/user/viewprofilepage/user-id/5186948) ,

Since incidents create alerts with an 'incident-alert-type' of either 'Responder' or 'Owner', we can use a global policy to that filters for only those alerts and then remove the responders so no notifications are sent out. It will looks like this:

![2023-10-06_15-10-23.png](https://community.atlassian.com/t5/image/serverpage/image-id/285047iE6ADCF1B10EE5F9D/image-size/large?v=v2&px=999 "2023-10-06_15-10-23.png")

Keep in mind that if you are using [Stakeholders](https://support.atlassian.com/opsgenie/docs/get-started-with-opsgenie-as-a-stakeholder/) (only available on Enterprise plans) those notifications go out directly from the incident, so there is no way to stop them.

comments: author: Wojtek Szczerbinski
body: Thank you [@John M](/t5/user/viewprofilepage/user-id/4625213)   
I will try this.
Configuring PRTG and OpsGenie alerts to have different priority via tags in PRTG
Asked by Alex Robson:

Is there a way to add to the email output from PRTG to OpsGenie? i tried adding %tag and didn't work, then inspected the page and found a class tag of "taglabel" and added that and still no luck. What I want is to be able to have some kind of unique output to filter the priority of each alert automatically.


Answers:
author: John M
body: Hi [@Alex Robson](/t5/user/viewprofilepage/user-id/5333794) ,

We have this guide on mapping priorities:

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

One option is to use separate 'create' actions with a different filter for each one and a hard-coded priority.
Parse email subject lines
Asked by Zander Otavka:

Apps like Heroku and Fivetran don't support rich alerting through the Opsgenie API. Instead, they send emails. Is there a way to parse the subject lines of an email using a regex and extract an alert action and alias?

Here is an example:

![Screenshot 2023-03-27 at 10.08.18 AM.png](/t5/image/serverpage/image-id/284534i8A234623CC564EFB/image-size/large?v=v2&px=999 "Screenshot 2023-03-27 at 10.08.18 AM.png")

Instead of creating two alerts, I'd like to automatically close the first one when the second "\[Resolved Alert\]" email comes in. A simple regex should be able to separate out whatever comes after the \[Brackets\] into the alert alias which we could use to auto close the issue. Is there a way to parse that subject line using [incoming integrations](https://support.atlassian.com/opsgenie/docs/what-are-the-integration-types-and-actions/)?


Answers:
author: James Allen
body: [@Zander Otavka](/t5/user/viewprofilepage/user-id/4813845) you can apply regexes to fields via a string processing method, though in this case it looks like you can use the substringAfter method too, documentation here:  
[String processing methods in Opsgenie integrations \| Opsgenie \| Atlassian Support](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/)  

You can use this to define the Alias field, you just want to be careful to ensure that the subject is going to be unique for each alert, if not you should combine some other variable from the email body (which can be extracted via a string processing regex).


Tags: cloud
unable create sandbox
Asked by David Nunes:

Hello everyone, everything good?

In need of support, we are using the enterprise license and need to create a sandbox environment. However, it is not included in the Atlassian administration under Products as evidenced:

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


Answers:
author: Shashwat Khare
body: Hello [@David Nunes](/t5/user/viewprofilepage/user-id/5277769) ,  

I'm from the Opsgenie support team.  

Please log an email ticket with us using [this link](https://support.atlassian.com/contact/#/) and we will be able to create the sandbox environment for your enterprise account as expected.  

Best,  
Shashwat

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

Thank you very much, I opened a ticket and already resolved it by creating the sandbox environment.
Error while downloading the report 400
Asked by Madhankumar K:

Issue with model or view. Cannot proceed. Error: Query for daily_distribution_of_total_on_call_times.csv failed: temp derived_table user_on_call_daily_distribution creation failed: SQL Error in CREATE TABLE as SELECT: (conn=2288928) Table 'reporting_data.Obsolete_Report' doesn't exist  
400


Answers:
author: Shashwat Khare
body: Hi [@Madhankumar K](/t5/user/viewprofilepage/user-id/4971026)   

I'm from the Opsgenie support team and here to help! :)   

May I know in which Opsgenie instance are you logged in with what email id?   

Also, may I know which exact Analytics report are you trying to download resulting in this error?  

Best,  
Shashwat
Can I use a NL phone number for OpsGenie call routing if I have OpsGenie as part of JSM?
Asked by Erik Groot:

Hi all,

Can I use a NL phone number for OpsGenie call routing if I have OpsGenie as part of JSM? I am not sure if that is possible. I read that when part of JSM you cannot make use of an OpsGenie provided phone number, and you have to get a Twilio phone number.

Is this method restricted to US phone numbers?

Thanks for answer in advance!


Answers:
author: Shashwat Khare
body: Hello [@Erik Groot](/t5/user/viewprofilepage/user-id/5106165) ,  

I'm from the Opsgenie support team and here to help! :)   

Yes, you can use a NL phone number for call routing in JSM subordinate Opsgenie, but the number has to be procured by you from Twilio.  

Here's a document link explaining how to search a buy a number from Twilio:  
<https://support.twilio.com/hc/en-us/articles/223135247-How-to-Search-for-and-Buy-a-Twilio-Phone-Number-from-Console>  

I hope this helps answer your query, wish you a great day ahead! :)   

Best,  
Shashwat

comments: author: Erik Groot
body: Hi Shashwat,

thank you for your answer. However, the way I read the support page on call routing integration in JSM subordinate Opsgenie, it seems that you can only use this when using a US phone number from Twilio, or do I interpret that wrong?

![CleanShot 2023-10-05 at 14.39.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/284656i0EB4CC67CE896D91/image-size/large?v=v2&px=999 "CleanShot 2023-10-05 at 14.39.27.png")


author: Shashwat Khare
body: My sincere apologies, Erik for this confusion due to a typo.  

<br />

What I meant was you can use a custom Twilio number in JSM subordinate Opsgenie, but for using a Netherlands number, you will need to split your Opsgenie from your JSM instance and use it as a standalone product.


author: Erik Groot
body: Hi Shashkwat,

Thank you for the answer. One more question; when I look at Twilio, it seems that I can still purchase a Netherlands phone number **within** the US Region;

Because the guide says **buy a phone number from the US Region** , does it then mean that you have to buy a **US phone** **number?** Or **any** phone number, but buy it from the US region?

This is a bit unclear to me. Hope you can clarify.![CleanShot 2023-10-05 at 14.52.53.png](https://community.atlassian.com/t5/image/serverpage/image-id/284664iEC6BE847E9F9A6FD/image-size/large?v=v2&px=999 "CleanShot 2023-10-05 at 14.52.53.png")


author: Shashwat Khare
body: Hello [@Erik Groot](/t5/user/viewprofilepage/user-id/5106165) ,  

I would request you to kindly log a ticket with us using [this link](https://support.atlassian.com/contact/) for this to be checked by a JSM Expert.  

I'm from the Opsgenie support team and someone from the Jira Service Management support team should be able to answer this accurately.  

Best,  
Shashwat
No agent can build this job
Asked by Keem:

Hello,

We are having issues running new build stages on our Build plan with Java Specs enabled. When checking the requirements of the job, it shows the newly added jobs can only be built by 2 offline nodes while the jobs that were already present in the specs file are able to run with no problem. The newly added Stage/Job has no requirements. Currently, we have dedicated individual build plans to certain agents. I have tried rededicating and all agents. That did not fix the issue. Rebooting bamboo also did not fix the issue. This is now affecting our ability to add new stages to our build plans.


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

Welcome to **Atlassian Community**!

It may be the case of an Agent dedication that you are not aware of. Please check the following KB to identify any missing Agent dedication configuration on your environment:

* [How to identify and remove Bamboo agent dedication from the database](https://confluence.atlassian.com/bamkb/how-to-identify-and-remove-bamboo-agent-dedication-from-the-database-1167727940.html)

As your issue is impacting the ability to run Plans, in case you have a valid license, we recommend you open a ticket with Atlassian at <https://support.atlassian.com/contact>. There out Support Engineers will be able to assist you and request more information from your environment in a private way.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: build

java

spec
how to resend google auth token if user had new phone
Asked by Chris Pretorius:

how to resend google auth token if user had new phone

Using secsign 2fa plugin


Answers:
author: Eduardo Alvarenga
body: Hello [@Chris Pretorius](/t5/user/viewprofilepage/user-id/1945606)

I'm sorry but I'm afraid your question is not really clear in terms of how it connects to Bamboo. Can you please elaborate a bit more?

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Chris Pretorius
body: Hi Eduardo Alvarenga

Thank you for responding.

I found a solution, not sure if it is the correct way but it worked.

In bamboo user administration, click on the user, in the user details page there is a button "Edit secsign ID's". I changes the ID for this user.

The user attempted to log in again and was presented with the QR code that he could scan in with his google authenticator app on his new phone.

Best regards

ChrisP


author: Eduardo Alvarenga
body: That's great [@Chris Pretorius](/t5/user/viewprofilepage/user-id/1945606). Good job!
Bamboo Servers were down, need help for investigation
Asked by Sehriban Alpaydin:

Hello,

Last weekend (18th of March) 3 of our bamboo master servers were down. We reboot the servers not to block ongoing works but need to find root cause. I will need your help to investigate this connection problem.

Thanks and Regards,

Sehriban Alpaydin


Answers:
author: Eduardo Alvarenga
body: Hello [@Sehriban Alpaydin](/t5/user/viewprofilepage/user-id/5175525)

As every instance is different and data privacy is required, we advise you to open a ticket with Atlassian at <https://support.atlassian.com/contact> with your particular concern. That way, the Atlassian Support Team can help you investigate your Bamboo issues looking for the root cause of it.

When opening the tickets please provide a description with the approximate time of the event and attach a [Support Zip](https://confluence.atlassian.com/support/create-a-support-zip-790796819.html) of each instance to speed up the investigation.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Sehriban Alpaydin
body: I am sorry I think I dublicate the request, it is already resolved thanks for response.
Unable to start Elastic Bamboo 1st time during setting it up
Asked by William Flow:

Ok so I created a EC2 and followed the instructions to create a AMI for use as an Elastic Bamboo Agent

I reboot my new EC2 and the agent fails to start and that prevents any files from downloading   

I did a status and got this:  

\[root@ip-10-245-163-211 bamboo\]# sudo systemctl status rc.local.service  
? rc.local.service - /etc/systemd/system/rc.local Compatablity  
Loaded: loaded (/etc/systemd/system/rc.local.service; enabled; vendor preset: disabled)  
Active: active (exited) since Fri 2023-03-17 19:15:03 UTC; 7min ago  
Tasks: 0 (limit: 99637)  
Memory: 0B  
CGroup: /system.slice/rc.local.service

Mar 17 19:15:02 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: Starting /etc/systemd/system/rc.local Compatablity...  
Mar 17 19:15:02 ip-10-245-163-211.us-west-2.compute.internal rc.local\[792\]: Fri Mar 17 19:15:02 UTC 2023 - Started execution of Bamboo instance startup scripts, uptime: up 0 minutes  
Mar 17 19:15:02 ip-10-245-163-211.us-west-2.compute.internal rc.local\[799\]: Fri Mar 17 19:15:02 UTC 2023 - Testing if instance has been started from Bamboo...  
Mar 17 19:15:03 ip-10-245-163-211.us-west-2.compute.internal rc.local\[853\]: Fri Mar 17 19:15:03 UTC 2023 - This instance has not been started by Bamboo. The agent will not be started.  
Mar 17 19:15:03 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: Started /etc/systemd/system/rc.local Compatablity.  
Mar 17 19:21:47 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: /etc/systemd/system/rc.local.service:9: Unknown lvalue 'StanardOutput' in section 'Service'  
Mar 17 19:21:47 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: /etc/systemd/system/rc.local.service:11: Support for option SysVStartPriority= has been removed and it is ignored  
Mar 17 19:22:44 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: /etc/systemd/system/rc.local.service:9: Unknown lvalue 'StanardOutput' in section 'Service'  
Mar 17 19:22:44 ip-10-245-163-211.us-west-2.compute.internal systemd\[1\]: /etc/systemd/system/rc.local.service:11: Support for option SysVStartPriority= has been removed and it is ignored  
\[


Answers:
author: Eduardo Alvarenga
body: This question is a duplicate. Please follow this thread instead <https://community.atlassian.com/t5/Bamboo-questions/While-setting-up-EC2-Instance-for-Elastic-agent-does-not-start/qaq-p/2303033>
Bamboo agent how to specify token in wrapper.conf
Asked by Mihir Godbole:

I provided token with java command to install bamboo agent.

When I try to start the agent using bamboo_agent.sh, it gives this message: "

Security token is required for preliminary authentication, but none was provided. Please obtain the token from https://\<bamboo-server\>/admin/agent/addRemoteAgent.action

Is there a way to specify token in wrapper.conf ?


Answers:
author: Oday Rafeh
body: Hi [@Mihir Godbole](/t5/user/viewprofilepage/user-id/5173161)

Yes, you can specify the security token in the wrapper. conf file for your Bamboo agent. To do this, follow these steps:

<br />

Open the **wrapper. conf** file in a text editor.

<br />

Add the following line at the end of the file, replacing **\<your_security_token\>** with the security token obtained from your Bamboo server:

```

wrapper. app. parameter.2=-Dbamboo. agent. security. token=<your_security_token>
```

<br />

Save the changes to the **wrapper. conf** file.

<br />

Restart the Bamboo agent using **. /bamboo-agent. sh** or the relevant command for your system.

<br />

By adding the security token to the **wrapper. conf** file, the Bamboo agent should now start without displaying the "**Security token is required**" message.
Bamboo bootstrap failed: Your Bamboo instance could not start because Bamboo home directory doesn''t
Asked by Emre Mustafa Oruc:

Hello, I can't get this error to go away. I have updated to the latest LTS version 9x, there I got this error. Now I have done a rollback but the error is back. Does anyone know a solution?  

Bamboo bootstrap failed: Your Bamboo instance could not start because Bamboo home directory doesn''t match database

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


Answers:
author: Eduardo Alvarenga
body: Hello [@Emre Mustafa Oruc](/t5/user/viewprofilepage/user-id/5069010)

Welcome to **Atlassian Community**!

When you upgrade Bamboo, a series of internal upgrade tasks are executed, including changes to the filesystem and the database. Talking specifically of the DB side, tables are modified to contain the Product version which is used to match the binaries version and the DB layout, besides many other DB schema changes you can have more information [here](https://confluence.atlassian.com/bamkb/investigating-bamboo-database-schema-269980693.html).

There is no way to rollback/downgrade a version of Bamboo other than restoring the contents of your:

* **\<bamboo-home\>**
* **\<bamboo-install\>**
* **\<database\>**

From a point in time before the upgrade.

If you decide to roll back an update you need to revert all three dimensions above and not only one or two of them.

The error you are reporting usually means you have restored the \<bamboo-home\> and/or \<bamboo-install\> contents and are still pointing to a DB version that contains an updated DB schema.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Request all builds of branch
Asked by Bj?rn Helmbold:

Currently I try to receive all builds from one branch with the endpoint

rest/api/latest/result/

I get only build resulst but I need as well the results for specs.

Is there an api to see a list of all builds including specs via api.


Answers:
author: Eduardo Alvarenga
body: Hello [@Bj?rn Helmbold](/t5/user/viewprofilepage/user-id/5172797),

Welcome to **Atlassian Community**!

Unfortunately, that feature is not available in Bamboo. We have opened a [Feature Request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) that you can follow and vote for. You can also add a comment with your specific use case so the developers would be aware of it.

* [BAM-22123: Allow the rest/api/latest/result endpoint to return non-regular build results such as Specs](https://jira.atlassian.com/browse/BAM-22123)

Thank you very much for raising that.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Eduardo Alvarenga
body: Hey [@Bj?rn Helmbold](/t5/user/viewprofilepage/user-id/5172797)

One more thing, though Bamboo will not expose all builds from the respective Plan branches natively, you can use the workaround provided on the following FR to achieve similar results (this time, without Specs builds):

* [BAM-21991: The Bamboo /result API endpoint should return information from Plan branch builds](https://jira.atlassian.com/browse/BAM-21991)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Bamboo Spec - VS Code
Asked by Dave Attard:

Has anyone looked at writing a VS Code extension that can parse and validate Bamboo-spec yml?

The Yml validator cant handle includes so it makes it difficult to test whether the entire spec will be successful or not.

If there is nothing out there for this.. Is there a functional spec of the validations that occur? and i will write one


Answers:
author: Dave Attard
body: I have had a look deeper into this, and have found that you can send you bamboo.yml file to  
* /rest/api/latest/import/plan/validate/{repoId}

so i ended up writing a quick parser to consolidate all the content and includes into a single file and then sending it to the above url to validate, as an action on commit  
Note: the repo id can be found using the below endpoint, and then just search for one that has reeEnabled = true

* /rest/api/latest/repository?searchTerm=


Tags: server

vscode

yml
Can you define and use Webhooks within YAML Bamboo Specs?
Asked by Ryan Lafko:

Good afternoon,

I'm looking for more details on sending notifications for builds or deploys to a webhook that has been defined in the Webhook Templates area from a Bamboo Specification.  

For example, I notify a specific support team via email on a build failure like so:

    notifications:
      - events:
        - plan-failed
        recipients:
          - emails:
            - some-email@some-domain.org

`I'm looking to make use of our Webhooks defined as such:`

    notifications:
      - events:
        - plan-failed
        recipients:
          - webhook:
              name: Build Webhook Template
              url: https://some_url.org/api

`When i added this second sample into my Bamboo Spec and ran it through the Bamboo Spec YAML validator, it passed validation. Does that mean this should function as I'm expecting? Is defining webhooks in Bamboo Spec YAML supported?`  

`I'm mostly asking this question because I could not find it documented anywhere in the Bamboo Specification Reference and would like to confirm this functionality as an option for notifications.`  

`Thank you`


Answers:
author: Ryan Lafko
body: I found that I was looking at the wrong version of the Bamboo Specification Reference. I was looking at version 6.2.3 from a google search and found newer versions here:  
<https://docs.atlassian.com/bamboo-specs-docs/>  

Looking at the newest version that my team is on, version 8.2.4, I found that webhooks are defined there as well as an option for notifications.

comments: author: Mia Paulin
body: [@Ryan Lafko](/t5/user/viewprofilepage/user-id/4879408) Let me do some research about the situation and I'll see what I can do. I will get back to you. Sorry that I couldn't help more that I am.


Tags: spec

webhook
What timezone the cron job is using?
Asked by Eugene Jiang:

What timezone the cron job is using?


Answers:
author: Eduardo Alvarenga
body: Hello [@Eugene Jiang](/t5/user/viewprofilepage/user-id/5167851)

Bamboo's scheduler will use the JVM's designated timezone, which will default to the same as used by the operating system or to the value of the ***user.time*** ***zone*** property when declared.

Here's a KB article that explains that better:

* [How to set the timezone for the Java environment](https://confluence.atlassian.com/kb/how-to-set-the-timezone-for-the-java-environment-841187402.html)

And Bamboo-specific how to set Java system properties:

* [Configuring your system properties](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html)

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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