youngmon/atlassian-qna huggingface dataset:
Create Incidents from Zendesk
Asked by Gustav Lasko:

According to [https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-salesforce-service-cloud/,](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-salesforce-service-cloud/) an alert can be created in OpsGenie from Salesforce. With our current Zendesk integration, we have the ability to create an incident instead of an alert - is that possibly with Salesforce, or are we limited to Alerts?


Answers:
author: Mubeen Mohammed
body: Hello [@Gustav Lasko](/t5/user/viewprofilepage/user-id/4823480)   
Thank you for contacting Atlassian Community!

As I understand you would like to directly get an Incident created in Opsgenie for Salesforce integration. With the current design, when a case is created by Salesforce Service Cloud, an alert is created in Opsgenie. You can make use of the incident rules to automatically create an Incident with the newly created alert. [Incident rules documentation](https://support.atlassian.com/opsgenie/docs/automatically-create-an-incident-via-incident-rules/).

But the direct option to get an Incident created in Opsgenie like the one available for Zendesk integration is currently not possible with the current product design. However, we have an open feature request with our engineering team. [OPSGENIE-67](https://jira.atlassian.com/browse/OPSGENIE-67) is the ticket ID/URL for the feature request. You can further vote/follow/comment accordingly on the request so our product team may consider it for future implementations.

I hope this clarifies your query. Please let us know if you have any further questions. We will be happy to assist.

Regards

Mubeen Mohammed

Cloud Support Engineer


Tags: cloud

salesforce
Event created on OpsGenie sent to an specific Queue on Jira
Asked by Afonso Henrique Rodrigues Alves:

The event creation part is done but the Service Desk asked me if it is possible to automatically send an event to an specific Queue on Jira.

Example - right now the events from opsgenie go to all open events and I would like to go to the unassigned queue.


Answers:
author: Nick H
body: Hi [@Afonso Henrique Rodrigues Alves](/t5/user/viewprofilepage/user-id/4822155) ,

By default when an Opsgenie alert creates a JSM issue, the issue itself should already be unassigned, so I'd assume it *should*end up in that queue. Are you seeing this is not the case?

Example:

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

This issue above is in an Open state, but also unassigned - so not sure if you have an unassigned status or something of that nature.

comments: author: Afonso Henrique Rodrigues Alves
body: Hey Nick.

It is going to the Queue for Events, but could I send it automatically to another queue?


author: Nick H
body: Hi [@Afonso Henrique Rodrigues Alves](/t5/user/viewprofilepage/user-id/4822155) ,

Opsgenie realistically can only have an alert create an issue in whatever project it's told to. A [queue](https://support.atlassian.com/jira-service-management-cloud/docs/what-are-queues/), as far as I know, is simply a group of issues based on a filter, typically defined by JQL.

It's my understanding the issue created by Opsgenie will appear in any queue that matches the defined filter of that queue. For example:

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

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

I suppose you could configure some sort of [automation](https://www.atlassian.com/software/jira/service-management/product-guide/tips-and-tricks/automation) when an alert creates a JSM issue to edit whatever field(s), status, etc. to match the queue's filter, and have it move into there at creation as well.


Tags: cloud
OpsGenie Webhook Integration with V2 API
Asked by Joanne Oliveira:

Hey folks,

I am migrating New Relic Notification Channels to Workflows and I have a webhook payload for OpsGenie V2 API KEY integration.

Most of the values are coming through but the hard-coded one is not. I put it in bold.

In OpsGenie, I wanted this value to be in the Entity Field. How can I do that? How should I put it? I've been wrapping up my head around this, please help :(

{  
"issue_id": {{ json issueId }},  
"message": {{ json annotations.title.\[0\] }},  
"details": {  
"self_url": {{ json issuePageUrl }},  
"state": {{ json state }},  
"is_correlated": {{ json isCorrelated }},  
"created_at": {{ createdAt }},  
"updated_at": {{ updatedAt }},  
"activated_on": {{ activatedAt }},  
"closed_at": {{#if issueClosedAtUtc}} {{ json issueClosedAtUtc }} {{else}}"None"{{/if}}  
},  
"incident_ids": "{{#each incidentIds}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",  
"priority": {{#contains "P1" accumulations.policyName.\[0\]}} "P1" {{else}} {{#contains "P3" accumulations.policyName.\[0\]}} "P3" {{else}} "P5"{{/contains}} {{/contains}},  
"customPriority": {{#contains "P1" accumulations.policyName.\[0\]}} "P1" {{else}} {{#contains "P3" accumulations.policyName.\[0\]}} "P3" {{else}} "P5"{{/contains}} {{/contains}},  
**"appAbbr": "THIS VALUE RIGHT HERE"** ,  
"owner": "NewRelic",  
"impactedEntities": {{json entitiesData.names}},  
"totalIncidents": {{json totalIncidents}},  
"state": {{ json state }},  
"trigger": {{ json triggerEvent }},  
"isCorrelated": {{ json isCorrelated }},  
"createdAt": {{ createdAt }},  
"updatedAt": {{ updatedAt }},  
"sources": {{ json accumulations.source }},  
"alertPolicyNames": {{ json accumulations.policyName }},  
"alertConditionNames": {{ json accumulations.conditionName }},  
"workflowName": {{ json workflowName }}  
}


Answers:
author: Nick H
body: Hi [@Joanne Oliveira](/t5/user/viewprofilepage/user-id/4983135) ,

Do you know whether or not that field is in fact parsing in the payload? You should be able to check the Logs tab for either the **Processed incomingData** or **Received integration request** logs.

If it is found in either of those logs, then you should be able to use some form of [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/) or [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/) to extract it into the alert. Maybe even something like this might work:

```
{{appAbbr}}

{{_payload.appAbbr}}
```

You could also try extracting the entire {{_payload}} of the alert into the description field to see if it's found, then use a [JSON formatter](https://jsonformatter.curiousconcept.com/#) to help determine exactly what you might need to extract it.

Since it's not a field offered by default within the New Relic integration, it would need to be extracted with some form mentioned above.

comments: author: Joanne Oliveira
body: ```
{{_payload.appAbbr}}
```

This one worked!

Thank you!


Tags: cloud
Explicitly set 'on linked repository change'-trigger via YAML specs
Asked by Okke Hendriks:

How to explicitly set the 'on linked repository change'-trigger, just like the default? I want to do this in order to combine it with other trigger(s). The default trigger seems to be removed when setting other triggers.  

The documentation (<https://docs.atlassian.com/bamboo-specs-docs/8.1.1/specs.html?yaml#repository-triggers-a-build-on-commit>) seems not to indicate how? Or am I misinterpreting something?  

Also see <https://jira.atlassian.com/browse/BAM-20932>.  

<br />


Answers:
author: Alexey Chystoprudov
body: It's possible by defining few triggers

```
...
triggers:- cron:    expression: 0 0 1 ? * *- polling:    period: '180'
```

comments: author: Okke Hendriks
body: Thanks for your reply.  

I did that as a workaround, but this is based on polling and not a trigger on commit? Or is that what happens by default? I think not because with polling you get the following 'Repository Polling' trigger (when viewing the configuration via GUI):  
![repo_polling.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/177059iCC5A95A74BB1E4D6/image-size/large?v=v2&px=999 "repo_polling.jpg")

<br />

And not this \`Bitbucket Server repository triggered\` trigger:  
![repo_triggered.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/177058i18582346B932BF3D/image-size/large?v=v2&px=999 "repo_triggered.jpg")


author: Alexey Chystoprudov
body: Yes, missed that part when made improvements to Triggers support in YAML Specs.

Will address it shortly, please track <https://jira.atlassian.com/browse/BAM-21559> for updates.
CICD for Micro Frontend mono repo
Asked by muruganshankar:

Hi,

We are working with Micro frontend apps, in mono repo structure. We are facing some issue while architecting bamboo CICD. My mono repo will have multiple subdirectories in it and each subdir are treated as independent application. On every checkin on that repo our bamboo pipeline will get trigger. My requirement is I don't want to build subdir if their no change in that. Can we somehow check, is there a change in the subdir then build that else skip that ?. Is that possible in bamboo. Please guide me.


Answers:
author: Dave Attard
body: you can use a plan based repo with change-detection

```
repositories:
- repo1:
    type: bitbucket-server
    server: Bitbucket
    project: XXXX
    slug: xxxx
    clone-url: 
    public-key: 
    private-key: 
    branch: master
    command-timeout-minutes: '30'
    use-shallow-clones: true
    cache-on-agents: true
    submodules: false
    ssh-key-applies-to-submodules: false
    verbose-logs: false
    fetch-all: false
    lfs: false
    change-detection:
      file-filter-type: include_only
      file-filter-pattern: folder1/.*
```


Tags: monorepo
Bamboo won't use the correct JAVA_HOME on Windows
Asked by Mike Kauspedas:

I have bamboo installed on win2012r2. Environment variables are set for java_home and jre_home. Despite that, Bamboo keeps trying to use "C:\\Program Files\\Java\\jdk-16".

JAVA_HOME = C:\\Progra\~1\\Java\\jre1.8.0_311

C:\\Users\\meh\>echo %JAVA_HOME%  
C:\\Progra\~1\\Java\\jre1.8.0_311

JRE_HOME = C:\\Progra\~1\\Java\\jre1.8.0_311

C:\\Users\\meh\>echo %Jre_HOME%  
C:\\Progra\~1\\Java\\jre1.8.0_311

Since it keeps looking in that jdk folder I ended up just copying jre1.8.0_311 into a jre folder and got bamboo started, but I'd like to get it running properly.

Running [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 8.0.4 build 80012 - 27 Oct 21.


Answers:
author: Laine Kahsay
body: Choose the path that Bamboo should use,  
you can edit the file conf/wrapper.conf and make changes to the line  
**wrapper.java.command=java** .  

An example is **wrapper.java.command=C:\\Program Files\\Java\\jdk1.8.0_35\\bin\\java**


author: Dave Theodore [Coyote Creek Consulting]
body: How are you setting the JAVA_HOME and JRE_HOME variables? Are you running the \`echo\` commands as the user that Bamboo runs as? You either need to set the global variables and not set variables for the user Bamboo runs as or only set the variables for the user Bamboo runs as.

comments: author: Mike Kauspedas
body: Thanks for replying. I have them set under system properties --\> environment variables --\> system variables. That should be global for all users right? I did not run the echo as the bamboo user.


author: Dave Theodore [Coyote Creek Consulting]
body: It's a little tricky to troubleshoot without knowing how you have things set up. When we set up any of the Atlassian tools on Windows, we set them to start as a service and create a service account for them to run as an unprivileged user(to be more secure.) Check [this doc](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html) on how to set up the service.


Tags: server
How to Connecting to LDAPS or Jira/Bitbucket/Bamboo applications or Other Services via SSL
Asked by zhongliwen:

Recently, we renewed the CERTIFICATES of LDAPS and LDAPS2, but after the jIRA system  
conversion, we tried to import our system and found that it did not take effect. Could you  
please provide us with the most detailed official support documents? We sincerely hope  
to receive your reply.


Answers:
author: Vishwas
body: Hey [@zhongliwen](/t5/user/viewprofilepage/user-id/4698197)

Welcome to Atlassian Community !!

Please check out this link about connecting atlassian application to ssl services

<https://confluence.atlassian.com/adminjiraserver/connecting-to-ssl-services-938847763.html>

and this link about configuring ssl with active directory

<https://confluence.atlassian.com/adminjiraserver/configuring-an-ssl-connection-to-active-directory-938847053.html>

Regards,

Vishwas

comments: author: zhongliwen
body: ldaps works. Thanks a lot. Much Appreciate.


Tags: bitbucket

jira
Error sending mail with Bamboo "NoClassDefFoundError: javax/activation/DataHandler"
Asked by Adrien Ragot _Requirement Yogi_:

When I try to send a test email in the Bamboo 8.1.1 administration, it dislays an exception:

```
ognl.MethodFailedException: Method "save" failed for object com.atlassian.bamboo.ww2.actions.admin.mail.ConfigureMailServer@58c8309 [java.lang.NoClassDefFoundError: javax/activation/DataHandler]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1981)
...
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataHandler
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:169)
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:159)
at com.atlassian.bamboo.mail.EmailService.sendEmailSynchronously(EmailService.java:115)
at com.atlassian.bamboo.mail.BambooMailer.send(BambooMailer.java:74)
at com.atlassian.bamboo.ww2.actions.admin.mail.ConfigureMailServer.testSMTPServer(ConfigureMailServer.java:130)
at com.atlassian.bamboo.ww2.actions.admin.mail.ConfigureMailServer.save(ConfigureMailServer.java:172)
...
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 302 more
```

More metadata:

```
Version: 8.1.1
Build: 80108
Build Date: 14 Dec 2021

Request information:
Request URL: https://bamboo.___.com/admin/saveMailServer.action
Scheme: https
Server: bamboo.dev.___.com
Port: 443
URI: /admin/saveMailServer.action
Context path:
Servlet path: /admin/saveMailServer.action
Path info:
Query string:
```

I'm on Java 11.0.11. I have moved the mail-1.6.2 and mail-api-1.5.6 from WEB-INF/lib to /lib, as recommended [in the guidelines](https://confluence.atlassian.com/bamboo/configuring-bamboo-to-send-smtp-email-289276984.html):

```
./atlassian-bamboo-8.1.1/lib/javax.mail-1.6.2.jar

./atlassian-bamboo-8.1.1/lib/javax.mail-api-1.5.6.jar

./atlassian-bamboo-8.1.1/atlassian-bamboo/WEB-INF/lib/atlassian-mail-5.0.0.jar

./atlassian-bamboo-8.1.1/atlassian-bamboo/WEB-INF/lib/cloud-compatible-email-validation-1.0.2.jar
```

and I've configured the admin to use a JNDI mail, but the same thing happens if I type the email parameters manually into the administraiton.

Can anyone help me?


Answers:
author: Gonchik Tsymzhitov
body: Could you replace

```
javax.mail-1.6.2.jar
```

with next version <https://mvnrepository.com/artifact/javax.mail/javax.mail-api/1.5.6> ?


Tags: server
Post URL to the Build Summary Screen
Asked by Curtis:

I am looking to have Bamboo execute Selenium tests in a Docker container, which can be accessed via the Build Summary screen of the build.

Is there a way to have variables displayed on the summary screens, or any of the tabs really. This value will change for each build as it is starting up a new docker container on the fly. The URL needs to be visible/retrievable while the build is running. It is useless once the job actually finishes.

Any ideas or suggestions would be most appreciated.

Thanks.


Answers:
author: Steffen Opel _Utoolity_
body: Unfortunately there does not seem to be a built-in user-facing way "to have variables displayed on the summary screens, or any of the tabs". That leaves two alternatives:

Bamboo build log {#toc-hId--1207533444}
---------------------------------------

Resolved variables are highlighted in the Bamboo build log, so provided you know what you are looking for, don't mind the additional clicks, and are willing to search through the unsorted list of potentially dozens of variables, this might be all you need - granted, the UX for this approach is terrible.

Custom app {#toc-hId-1279979389}
--------------------------------

It is possible to build an app to extend the summary screen, but please note that implementing and maintaining Bamboo apps is not for the faint of heart in general. That being said, your particular ask *might* be fairly straight forward conceptually:

Provided you have implemented a skeleton Bamboo app (see e.g. [Getting started](https://developer.atlassian.com/server/bamboo/)), you 'just' need to implement a [Web Panel module](https://developer.atlassian.com/server/bamboo/web-panel-module/#bamboo-specific-notes-for-web-panels) with an applicable location, e.g. *chainresult.summary*:
> Renders below the 'Write a Comment' box at the bottom of the Plan Result Summary page

You could start from one of the [Web Panel example](https://developer.atlassian.com/server/bamboo/web-panel-module/#web-panel-examples) fragments and then extend the code to display the desired URL at runtime.

You can see this in action in Eddie Webb's cool [Pipeline Flow for Bamboo](https://marketplace.atlassian.com/apps/1218747/pipeline-flow-for-bamboo) app, which seems to leverage both *chainresult.summary* and *chainresult.summary.right* to visualize the build pipeline flow and a table with information from related deployment projects, and both seem to be properly refreshed while the build is running:

![](https://marketplace-cdn.atlassian.com/files/a6aea243-4d45-45cf-b7db-79763f0e992a?fileType=image&mode=full-fit)

Good luck!


Tags: server
Issues on Bamboo during installation
Asked by Biswajit Sahu:

Hi,

I am trying to install Bamboo 8.1.1 in my local Windows Machine. But getting issue during installation. Please find the attachment which I got issue.

During installation I have installed mysql database workbench in my local and setup user id and password. Apart from this setup mysql-connector java in "C:\\Program Files\\Bamboo\\atlassian-bamboo\\WEB-INF\\classes" folder.

While I click on continue, Its redirected to same page, its unable to jump to next step. Please check and help me on this.

Thanks

Biswajit![Capture.PNG](/t5/image/serverpage/image-id/175099i1DBAD7EC17987A0F/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Daniel Ebers
body: Hi [@Biswajit Sahu](/t5/user/viewprofilepage/user-id/4571582)

I seem to understand you are not able to start your Bamboo installation correctly.  
Have you had a chance to check the logfile of Bamboo, yet?  
It might give an additional clue why it is not working as expected.

* **Logging in Bamboo** <https://confluence.atlassian.com/bamboo/logging-in-bamboo-289277239.html>

Regards,  
Daniel


author: Kurt Klinner
body: [@Biswajit Sahu](/t5/user/viewprofilepage/user-id/4571582)

Hi Biswajit

the mysql-connector jar must be located in \<Bamboo installation directory\>/lib

Please see also <https://confluence.atlassian.com/bamboo/mysql-289276817.html>

Cheers

Kurt

comments: author: Biswajit Sahu
body: Hi,

This is seriously ridiculous. I tried every version of Bamboo, every version have issue, then why we use Bamboo if we faced difficulty to install it.

According to your link, I tried but got ![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/175187i510F7E81DAF7AD10/image-size/large?v=v2&px=999 "Capture1.PNG") "Please wait while we setup your instance"

Then I remove my sql server and create MS Azure SQL server, Please check my attached screenshots. But Still its stuck in that same "Please wait while we setup your instance"

Please guide me with High Priority.

Thanks,  
Biswajit
How to create independent 'modules' within the same repository?
Asked by NullPointer:

I am new to bamboo and currently struggling how to achieve the following whilst adhering to best practices (no workarounds or nasty tricks).

My git repository:

Technology  
\|- SharedStuff  
\|- Project A  
\|- Project B  
\|- Project C  

I currently have:  
- 1 single repository (Technology).   
- 1 Project (Technology)  
\|- Plan for A  
\|- Plan for B  
\|- Plan for C  

**Actual behaviour:**   
When pushing a change to Project A, all plans trigger.

**Wanted behaviour:**

When pushing a change to Project A, only plan A triggers.

**Known workaround:**   
Create multiple linked repositories (one per project and use subdirectory expression). If you have 40 projects then you should do this 40 times.

**How does the competition do it?**   
I come from different tool background where you simply install a maven/ivy plugin and the tool would 'modularise' the projects and build only the modules that have changed (2 min).   
As long as new modules contain the module descriptor (pom or ivy) then new module would be picked up automatically. Is there anything similar in this case?

**Question:**   
How can I build only changed modules rather than every single plan?


Answers:
author: NullPointer
body: Wow - no answer no one interested on such trivial topic. Questioning the move....


Tags: module

project
Cannot add a group in Bamboo under Project Permissions group access section
Asked by Amrik Birdi:

Hello,

I have created a group in Jira called **idxx-devs**.

In my Bamboo **(server version is 8.0.1)** project I go Project Permissions and under the 'Group access' section I successfully enter my group name of **idxx-devs** but when I select the Admins permissions I get an unexpected error message:

"**When granting "ADMINISTRATION" permission the following permissions must also be granted: "CREATEREPOSITORY"**

Please try reloading the page."

But yet I can successfully select permissions of View \& Create.

My current workaround is adding users indivudually.

Can anyone help?

kind regards

Amrik


Answers:
author: Alexey Chystoprudov
body: It's known issue <https://jira.atlassian.com/browse/BAM-21466>

There're few options to address this issue:

\* use Data Center license

\* upgrade to 8.0.5

comments: author: Amrik Birdi
body: Thanks for the update. I think an upgrade of Bamboo to a newer version will have to be done

regards

Amrik


Tags: server
CVE-2021-44228 CLASSPATH
Asked by Jos? Ladeira de Lima Silva:

Regarding your FAQ:

<https://confluence.atlassian.com/kb/faq-for-cve-2021-44228-1103069406.html> {#toc-hId--1208399217}
---------------------------------------------------------------------------------------------------

when you say:

* The `javax.jms` API is included in the application's `CLASSPATH`

Which application are you referring to? Is the JAVA application's CLASSPATH or Bamboo/Atlassian's CLASSPATH ?

As far as I know the JAVA CLASSPATH in Ubuntu is something like /usr/lib/jvm/java-8-openjdk-amd64/jre/lib where the JAR files are. However in the Bamboo directory we can also find JAVA JAR files in ./atlassian-bamboo-8.0.0/atlassian-bamboo/WEB-INF/lib/.

I'm asking this because I'm not sure which is the CLASSPATH we should look for the `javax.jms` API

Thank you


Answers:
author: Alexey Chystoprudov
body: Both

comments: author: Jos? Ladeira de Lima Silva
body: Thank you !


Tags: cve-2021-44228

log4j