youngmon/atlassian-qna huggingface dataset:
How to integrate with Zoho Desk
Asked by Gijsbert:

Does anyone have experience with integrating OpsGenie with Zoho Desk? At minimum we would like to create a ticket in Zoho Desk from an alert in OpsGenie (forward the alert).

Nice to have, but not required:

- sync status updates (close ticket \<-\> close alert)

- sync notes


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

John from Opsgenie support here, happy to assist!

While we do not have a pre-built integration for Zoho desk, our [API integration](https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/) can be used for building your own integrations. With Zoho desk, it looks like they have a [webhook](https://help.zoho.com/portal/en/kb/desk/automation/webhooks/articles/setting-up-webhooks-in-zoho-desk) that can be triggered. As along as you can customize the webhook's payload to match what's required for a POST call to the ['create alert' endpoint](https://docs.opsgenie.com/docs/alert-api#create-alert) in Opsgenie's API, it should work. If you can't customize the Zoho payload directly in Zoho, you can send it to another endpoint first to modify it, then send it to Opsgenie.

Alternatively, it looks like there are some third-party tools that have prebuilt integrations between Opsgenie and Zoho Desk, including Zoho flow, which I expect should work well with their Desk:

<https://www.zohoflow.com/apps/opsgenie/integrations/>

<https://integrately.com/integrations/opsgenie/zoho-desk>

<https://www.appypie.com/integrate/apps/opsgenie/integrations/zoho-desk>

comments: author: Gijsbert
body: Hi John,

Thank you for your answer. The webhook and Zoho flow only works from Zoho Desk --\> OpsGenie if I understand correctly, we are looking for an integration the other way around.

The other two third party solutions seem to support this, I will investigate those.


author: John M
body: Hi [@Gijsbert](/t5/user/viewprofilepage/user-id/4666064) ,

Our webhook sends an outbound payload but you may be right about Zoho flow only supporting outbound workflows, I'm not too familiar with it, but their support team should be able to clarify. If that is the case, you would need to setup a custom endpoint to receive the Opsgenie webhook and then send it to Zoho.


Tags: cloud
How to search alerts when description are in json format?
Asked by Olivier Truong:

Hello,  

we have some alerts whose description are in a json format. For example a description would be like

```
?{"key": "value", "key2":"value2"}
```

How can we search the alerts to find them? I tried something like

```
description:"{\"key\": \"value\"}" 
```

<br />

or  

```
description:"*value*"
```

<br />

but nothing is returned.

Thanks for your help!


Answers:
author: Shashwat Khare
body: Hello [@Olivier Truong](/t5/user/viewprofilepage/user-id/5432712) ,  

I'm Shashwat from the Opsgenie support team :)   

Please note that the JSON query search is [not supported](https://jira.atlassian.com/browse/OPSGENIE-1254) currently in the alert description field.  

I tried the same in my test lab and saw that we're not able to search for the key name or the key-value when it's parsed inside the description field in the JSON format.  

Instead, you can use the details.key or the details.value field to search for the extra property name or value in Opsgenie, provided they are getting parsed inside alert extra property fields from the description field.  

Please refer to the below documents link on how to parse the description field inside the Extra Property for the Opsgenie alerts:  
<https://support.atlassian.com/opsgenie/docs/dynamic-fields-in-opsgenie-integrations/>  
<https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/>  

Best,  
Shashwat

comments: author: Olivier Truong
body: Hello [@Shashwat Khare](/t5/user/viewprofilepage/user-id/5070894) thank you for taking the time to check and reply. At least I didn't miss something from the documentation.


Tags: cloud
Assign responder to alert based off of the assignee in SNOW
Asked by Kyle Aiuto:

Hello All,

we use the SNOW integration for Opsgenie and we've recently developed a business need that I can't seem to find a solution for in Opsgenie's documentation today.

Right now we have alerts going to an escalation chain but we are wondering if this alert creation rule can be auto-assigned to the person who is assigned to the incident in SNOW?

So if the incident is assigned to user A, and our create alert rule hits, Ops Genie would create said alert and then get the responder from the assigned to field in SNOW, thus notifying user A of the alert.

We are trying to figure out a way for an engineer to get a notification about a very specific update. We have the alerts being created for this specific update but I can't find a way to make the responders the person assigned to the ticket.

The only way I can think of doing this now is creating a create rule set that is duplicated but you would have a rule set per engineer and then have an escalation chain per engineer/user which seems like a very cumbersome way to achieve this business need.


Answers:
author: Mubeen Mohammed
body: Hello [@Kyle Aiuto](/t5/user/viewprofilepage/user-id/5430892)

Thank you for contacting the Atlassian Community. This is Mubeen.

You're correct that this type of specific user assignment is not a built-in feature in Opsgenie's ServiceNow (SNOW) integration. However, with a bit of additional setup, it could be possible to achieve a similar result. The primary idea here is to use a combination of Opsgenie's API and ServiceNow's API to perform the user assignment.

The steps to consider as a workaround for this requirement

* With your current setup, between Opsgenie and ServiceNow you are able to get the Opsgenie alerts created for the SNOW incidents. The incoming payload of this action could include details about the ServiceNow incident, including the assigned user. If not then concurrently, when the alert is created in Opsgenie, you could have a[custom action](https://support.atlassian.com/opsgenie/docs/set-up-a-custom-action-alert/) rule setup to execute a script. This script would call the ServiceNow API to retrieve the assigned user for the incident.
* Once the assigned user is retrieved, the script could then call the Opsgenie API again to [assign the alert](https://docs.opsgenie.com/docs/alert-api#assign-alert) to the corresponding user within Opsgenie.

Please note that this type of setup would require some development work, and you'd need to ensure that the user mapping between ServiceNow and Opsgenie is accurate. Additionally, you need to consider how to handle situations where a ServiceNow user doesn't have a corresponding Opsgenie user, or the user is not available for alerting at the time.   

The above information/documentation should provide a pathway to achieve the functionality you're looking for. However, to achieve this requirement you can connect with your internal development team to analyse and provide you with the scripts needed for this requirement.

I hope the details provided are helpful.

Regards  
Mubeen Mohammed  
Cloud Support Engineer


Tags: cloud
I am new to Opsgenie, and have a set up question
Asked by Adam Longson:

Is there a way to let notes and attachments roll forward into future alerts of the same type, we would like to add lessons learned, SOP, and the like so that we can work through things faster.


Answers:
author: Tejaswi G
body: Hey Adam,

Thank you for reaching out to the Opsgenie Community.

Opsgenie does not directly support a feature to roll notes and attachments forwarded into future alerts of the same type.

However, Opsgenie does have a feature called "[Alert Policies](https://support.atlassian.com/opsgenie/docs/create-and-manage-global-alert-policies/)" which can be used to automate actions based on defined conditions. While it does not directly allow you to roll notes and attachments forward, you could potentially setup a policy that automatically adds a particular information/SOP to an alert's defined field like description/Message/extra properties.

For attachments, Opsgenie currently does not support an automated method to roll them forward. Attachments need to be manually added to each alert.

If you have any specific configuration questions with your Opsgenie instance you can raise a ticket with instance information at [support.atlassion.com](https://support.atlassion.com/contact) so we can help accordingly.

Regards,  
Tejaswi
How can I duplicate alerts received from Email Integration to another Opsgenie
Asked by Meadows_ Chase:

Hi,   

There are two teams (A and B) that are using OpsGenie that will eventually become 1 team. I want to create a process where if team A gets an alert, team B gets a copy of the same alert. If a member of team A gets acknowledges the alert, I want team B's copy to be unmodified, so that team B also has to separately acknowledge and close the alert. Team A receives their alerts through the OpsGenie email integration. I would want the equivalent behavior to also exist for team B.   

How can I set this up through OpsGenie?


Answers:
author: Kyle Aiuto
body: Hello,

I would assume you need to create another email integration and assign it to Team B then replicate whatever you're doing with Team A to Team B's email integration so that you create duplicate alerts but for separate teams. Then they could work on them independently.

I don't have experience in the email integration though so I could be wrong.


Tags: cloud
Recording for Voice Alerts Starts Before Call Is Picked Up
Asked by Stephen Flaaen:

We have a few Opsgenie on-call users who are first notified by calling their cell phone, as expected by their notification settings. However, when they answer the call, the automated recording with the details of the message has started playing, so they may miss the first 5 to 10 seconds of the recording, depending on how long it takes to answer the phone.

Does anyone know if there's a configuration to change this setting? Or an existing bug ticket open for this issue?


Answers:
author: Shashwat Khare
body: Hello [@Stephen Flaaen](/t5/user/viewprofilepage/user-id/5326741) ,  

I'm Shashwat from Opsgenie support.  

No, this shouldn't be happening for the voice notifications being sent out to the on-call users and the notification call should start with the IVR saying "You have a new notification from Opsgenie"  

Please log a support ticket with us using [this link](https://support.atlassian.com/contact/#/) mentioning the user details and their voice contact numbers so that we can investigate what's actually happening here.  

Best,  
Shashwat
I need an API to update the repositories branch field.
Asked by sunil jaiswal:

* I have one bamboo plan that has two repositories repo1, and repo2.
* Repo1 branch points to the master and Repo2 branch points to develop.
* But that plan has multiple plan branches like release_1_0_0, release_1_1_0, etc. So here each plan branch Repo1 point to branch release_x_x_x.
* Now when I create new bamboo plan branches the repo's branches point to default branches. manually we can update the, but I want to update the branch so that its point to different branch that I want using API call.
* **The field that I want to update using API call you can see in the pic given below.**

![Screenshot 2023-08-12 131924.png](/t5/image/serverpage/image-id/274788i016C88AE2148C092/image-size/large?v=v2&px=999 "Screenshot 2023-08-12 131924.png")

![Screenshot 2023-08-12 132038.png](/t5/image/serverpage/image-id/274789iA45798161D2DB2FF/image-size/large?v=v2&px=999 "Screenshot 2023-08-12 132038.png")


Answers:
author: Eduardo Alvarenga
body: Hello [@sunil jaiswal](/t5/user/viewprofilepage/user-id/5290961),

To achieve that, you must use configuration-as-code in Bamboo. Configuration as code is achievable through Bamboo Specs.

Specifically for your requirement, only Java Specs will support such customisation as the YAML implementation in Bamboo still does not have that feature.

Check the links below for more information and example code:

* [Bamboo Java Specs](https://confluence.atlassian.com/bamboo/bamboo-java-specs-941616821.html)
* [Tutorial: Create a simple plan with Bamboo Java Specs](https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html)
* <https://docs.atlassian.com/bamboo-specs-docs/latest/specs.html?java#overriding-branch-of-a-linked-repository>

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: api
How to get Metadata data properties using rest api
Asked by Madhu:

Hi Team,

I need to retrieve the key value pair in metadata tab.

Key - plan.StorageTag

Value - plan-123456

Can you please help me how to achieve this requirement.


Answers:
author: Anik Sengupta
body: Hi Madhu,

The Bamboo database can be easily queried to retrieve a list of plan key to storage tag mappings:  

    SELECT FULL_KEY,STORAGE_TAG FROM BUILD WHERE BUILD_TYPE IN ('CHAIN','CHAIN_BRANCH');

Example result:  

|  full_key   |  storage_tag  |
|-------------|---------------|
| SAMPLE-PLAN | plan-18022401 |
| PROJ-PLAN   | plan-20414467 |

Pls refer :- <https://confluence.atlassian.com/bamkb/how-do-i-know-what-bamboo-plan-is-storing-artifacts-in-which-directory-on-disk-899563793.html>  
Regards,

Anik Sengupta

**\*\*please don't forget to Accept the answer if your query was answered\*\***
Access Bamboo Jobs from different location
Asked by Alin Martinica:

I want to know if the artifacts from Bamboo_Home8\\shared\\artifacts can be moved to a different location/ drive and can be called from there.

The problem i have the drive i have the bamboo server on it gets maxed out every week and because the way it's configured is pretty hard to keep changing the specs and add more space. I want to create a different drive and move all artifacts there.


Answers:
author: Anik Sengupta
body: Hi Alin,

You can refer this below KB article for the above query

<https://confluence.atlassian.com/bamkb/changing-storage-paths-for-builds-and-artifacts-in-bamboo-427622809.html>

Regards,

Anik Sengupta

**\*\*please don't forget to Accept the answer if your query was answered\*\***
How to import bamboo plans as java specs in a new bamboo instance
Asked by Booi_ Enati:

I would appreciate assistance on how to import bamboo plans as Java specs in the new bamboo instance.

I have already exported the plans. Just need to know how to import them.


Answers:
author: Eduardo Alvarenga
body: Hello [@Booi_ Enati](/t5/user/viewprofilepage/user-id/5287294),

Welcome to **Atlassian Community**!

To import the Plans, follow the steps outlined in the following KB article, replacing the sample Java Specs code with your exported ones.

* [Tutorial: Create a simple plan with Bamboo Java Specs](https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html)

You should be particularly interested in steps 1, 4, and 5.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Bulk edit of a deployment task?
Asked by burt repine:

We have hundreds and hundreds of deployment plans that contain a task that uses a now defunct 'linked repository'.

We would like to have the tasks updated to use the new repository but were hoping for a non-manual way of doing it?

Thanks for the help.


Answers:
author: Anik Sengupta
body: Hi Burt,

Thanks for your question.

May be you can try the workaround mentioned in the BAM -

**<https://jira.atlassian.com/browse/BAM-18273>**

This can be done using a database update:

<br />

1. Stop Bamboo  
2. Back up your Bamboo database for restore/recovery purposes  
3. Run the following update query, replacing \<old-url\> and \<new-url\> as needed:?  
PostgresDb:  
update VCS_LOCATION as V

set xml_definition_data = replace(xml_definition_data,'\<old-url\>','\<new-url\>');

MSSQL Server: ?  
update VCS_LOCATION set XML_DEFINITION_DATA = replace( cast( XML_DEFINITION_DATA as nvarchar(max) ),'\<old-url\>','\<new-url\>');

Note: If you are using a port other than 22, you will also need to amend the port number to the new URL or configure port forwarding from the default port (22) as explained in this KB article.

4. Start Bamboo

<br />

Regards,  
Anik Sengupta  
\*\*please don't forget to Accept the answer if your query was answered\*\*


author: Anne Li
body: Hi Annie,

We did as you suggested, it worked. but one thing is bothering: after the replacement, the repository loading is extremely slow, more than 1 min, all other repos are normal, just this updated one. from both deploy plan or linked repository page.

any suggestions?

thank you!

Anne
Bamboo failing to start on system reboot
Asked by Mark Wolff:

Red Hat Linux 8, using systemctl to fire off the Bamboo start script. It doesn't come up at first, but if we rerun the systemctl command again after a few minutes, it works. My IT guy is guessing that Postgres isn't coming up quick enough and Bamboo doesn't come up. But once Postgres is completely up, the startup works wonderfully. Does anyone recognize this issue? Any suggestions? Putting a "wait" in the start up scripts?


Answers:
author: Eduardo Alvarenga
body: Hey [@Mark Wolff](/t5/user/viewprofilepage/user-id/544553),

Your Systemd Unit file appears to have no specific dependency on your PostgreSQL service and is started immediately upon the system startup.

You can prevent Bamboo from starting immediately by adding a ***Wants*** and ***After*** property to its Unit file:

```
[Unit]
Description=The Bamboo CICD 
Documentation=https://atlassian.com/bamboo
Wants=postgres.service
After=postgres.service
```

Here's the recommended SystemD format you can adjust for your needs:

* [Running Bamboo as a Linux service](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-linux-service-416056046.html#systemd) -- make sure to expand the ***Systemd Service Configuration*** session

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: server
What are the best ways for teams or organizations to schedule and perform deployments using Bamboo?
Asked by rlshuart:

We currently use the Bamboo deployment projects to use the rest api to execute deployments for OKD and use the Scheduled trigger.


Answers:
author: Shashank Kumar
body: Hello Rishuart,

Welcome to Atlassian community.

You can use the below 4 Deployment triggers in Bamboo to schedule your deployment

* a successful build of a plan branch
* a successful deployment to some other environment
* a successful build of a plan stage
* a schedule (specific time and date, at an interval, or Crone-based)

More details at <https://confluence.atlassian.com/bamboo/triggers-for-deployment-environments-342098622.html>

Let me know if you have any specific scenarion or questions which I can answer.

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: rlshuart
body: How would you handle specific scheduled deployments that are not recurring?
How do I dynamically skip the execution of stage based on variable value?
Asked by Shriram Jaju:

I have bamboo plan with 2 stages. In first stage I check for a condition and set a injected variable. In second stage I have "Dynamic Tasks De-Activation" set to evaluate the value of the injected variable. When I run the build, in second stage even-though dynamic Condition evaluated to \[true\], the stage is not skipped and marked as fail.

I want to skip the stage if the dynamic condition is true. So basically I want to skip the whole build in case the condition is not met.

P.S. In case the dynamic condition is false, the second stage is executed as expected.


Answers:
author: Eduardo Alvarenga
body: Hello [@Shriram Jaju](/t5/user/viewprofilepage/user-id/5264945)

When adding the injected variable, have you selected the scope as "Result"? *Result* will pass the variable to the next Stages within the same Build and guarantee its availability.

Also, make sure you are evaluating the correct variable name on your conditional task as it should be something like:

```
${bamboo.namespace.variable_name}
```

The *namespace* is defined when creating the injected task.

<br />

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: vikeshk
body: Hi [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)   
${bamboo.namespace.variable_name} doesn't seem to work.  

${bamboo.inject.testvar} = true  
${bamboo.inject.testvar} evaluates to null in Dynamic Tasks De-Activation" condition. When I echo ${bamboo.inject.testvar} in a build task it logs the correct value.  

Please let me know if I am missing anything here. Thank you!  

PS: Bamboo version 8.2.5 build 80211 - 22 Jul 22
Upgrading to Bamboo 9.3.1 from 8.0.13 gives useSSL errors
Asked by Zed Saeed:

we have hit a snag whilst upgrading from our last working version of 8.0.13 to 9.3.1.  

Firstly we had to upgrade from java 1.8.0 -\> Java 11  

now when we try and logon to bamboo we are met with a refused connection.  

The Log is showing:-  

Wed Aug 02 10:42:35 CEST 2023 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. my connector property has useSSL=false in, but still faililng  

However our bamboo.cfg.xml has this property already in place and it doesn't seem to be taking:-

(N.B. exact hostname and port ommitted for obvious reasons)

<br />

\<property name="bamboo.jms.broker.client.uri"\>failover:(tcp://hostname.example.com:NNNNN?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10\&amp;initialReconnectDelay=15000\&amp;useSSL=false\&amp;sslMode=PREFERRED\&amp;\</property\>  

any ideas/pointers etc on how we progress and move forward with this at all please?


Answers:
author: Charlie Misonne
body: Hi [@Zed Saeed](/t5/user/viewprofilepage/user-id/5284007)

The property you shared in your questions is the broker URI while the error is related to MySQL. Your database is MySQL right?

What is your *hibernate.connection.url* property?  
You'll need to add *useSSL=false* in there assuming your MySQL does not require SSL. Use true if if it does require it of course.

Here is an example I fetched from [another question.](https://community.atlassian.com/t5/Bamboo-questions/How-to-change-bamboo-database-mysql-to-mysql/qaq-p/761599)You might not need all those paremeters, it depends on your setup but useSSL=false is in there.

Note how the ampersands (\&) are encoded as *\&amp;*

```
<property name="hibernate.connection.url">jdbc:mysql://192.168.xx.yy/bamboo?autoReconnect=true&amp;useUnicode=true&amp;useSSL=false&amp;characterEncoding=utf8&amp;sessionVariables=storage_engine=InnoDB</property>
```

comments: author: Zed Saeed
body: [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263) - thank you, that has done the trick, so kudos to you, being a complete newbie to these products, i think there was some ( obvious ) confusion between *hibernate.connection.url* and bamboo.jms.broker.client.uri, which showed, cheers.


author: Charlie Misonne
body: glad I could hep!