youngmon/atlassian-qna huggingface dataset:
roles with user management
Asked by Jefferson Andrade:

Hello!

I need to confirm a piece of information I read on this [link](https://support.atlassian.com/opsgenie/docs/learn-user-roles-and-permissions/)

In Opsgenie, can only participants configured with owner and admin roles add/remove new members?

Is there any way to create a custom role that allows:

1. the view (without power to change) the billing section;
2. all other admin duties except the user management part (mainly adding new users)

If I had to choose the most critical access, I'd go with user management.

Best regards,

Jefferson


Answers:
author: Mubeen Mohammed
body: Hello [@Jefferson Andrade](/t5/user/viewprofilepage/user-id/5268701)

This is Mubeen, I will be happy to help.

As I understand you have a specific requirement with user role to accomplish a few specific tasks. Please find the details below for both the requests.

1. Read-only permissions for the billing section are currently not possible. Only the Owner user can view or action the billing/subscriptions. If this is a mandatory requirement you can add the user email address under the "**Billing Information"** section for "**Invoice recipients emails**" so the user will receive the invoice emails, but currently there is no UI option available to give read-only permissions for the billing section.

2. With the current product design user management is only restricted to Admin and Owner user roles. However, we have an open feature request open with our engineering team, to allow a custom user role specific to user management. [OPSGENIE-1428](https://jira.atlassian.com/browse/OPSGENIE-1428) is the ticket ID for your reference.

You can also read about our [feature implementation policy.](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html)

I hope the information provided is helpful.

Regards

Mubeen Mohammed

Cloud Support Engineer

comments: author: Jefferson Andrade
body: Hi [@Mubeen Mohammed](/t5/user/viewprofilepage/user-id/4779601)!   

Apologies for the delay.  

Your answer was of great help, however Opsgenie users with the Admin role can still manage users.   

Perhaps the creation of the role, as per the ticket mentioned, can help us in some way, or we can reevaluate and proceed with opening another ticket.

Regards,

Jefferson
How can I add extra properties in analytics report
Asked by Yaroslav Zakharov:

Hello!

Having a large organization with multiple departments, I would love to be able to filter the monthly report by each team. This information is stored in the Extra properties section, which is currently not accessible anywhere in analytics reports.

Is there a solution to add this to the analytics on my end? Or any other solution know?

Kind regards,

Yaroslav


Answers:
author: Mubeen Mohammed
body: Hello [@Yaroslav Zakharov](/t5/user/viewprofilepage/user-id/5268448)

This is Mubeen, I will be happy to help.

I understand that you would like to filter your Analytics alert reports with "Extra properties". However, this is not currently possible due to the product design. We have already notified our engineering team of this request, and they have assigned it the ticket ID OPSGENIE-55.  
Please rest assured that our engineering team is working on this. You can also find more information on our new feature implementation policy at [Implementation of New Features Policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html)

As a workaround, you can retrieve all alert fields via [Alert API,](https://docs.opsgenie.com/docs/alert-api) so you can write a script to export their alerts via API and include all of the alert fields.

I hope the information provided is helpful.

Regards

Mubeen Mohammed

Cloud Support Engineer


Tags: cloud
Priority mapping not respected in Jira Service Management incoming alert rule
Asked by Michael.Gaskin:

I am using the Jira Service Management integration for OpsGenie. In my Jira instance, I have the Jira priority values (Blocker-High-Medium-Low) mapped to OpsGenie priority values (P1-P2-P3-P4).

When using this rule, the priority mapping works fine: ELSE IF eventType equals issue_created THEN create alert

In Jira Service Management, I have Automation rules to set the priority based on Impact and SLA Tier. To give these Automation rules time to run, I use the issue_updated eventType in OpsGenie instead:

ELSE IF eventType equals issue_updated AND labels contains headless_incident THEN create alert

However, when using this rule, although the priority value in "Extra Properties" is Blocker, the priority is set to P3 and not P1.  

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

I could hack around this by creating multiple rules to set the priority manually, but it would be nicer just to use the {{priority}} dynamic value in a single rule.

Any ideas?


Answers:
author: John M
body: Hi [@Michael.Gaskin](/t5/user/viewprofilepage/user-id/3781214) ,

I don't think the filter being different would cause an issue. Normally, if you're using the mapped priorities, when it reaches Opsgenie you need a number to extract. For example:

P{{impact.extract(/\[0-9\]/) }}

The fact that the alert is showing "Blocker" in the priority field likely means that the mapping could not process anything into a valid Opsgenie priority of P1-P5.

Can you post what is in your Mapped Priority Value field in Opsgenie?

comments: author: Michael.Gaskin
body: Hi [@John M](/t5/user/viewprofilepage/user-id/4625213)  

I worked on it more last night and found that the rules are indeed a red herring; what's really happening is:

* If the Priority value in Jira is Low, Medium, or High, the mapping works fine.
* It only doesn't work for Blocker.
* However, if I add a condition to my rule that regex-matches "Blocker" and sets the priority to P1, that works.   

  In the screenshot below, you can see that the priority mapping is all done in the same place in Jira, so I'm not sure why Blocker is the only one that doesn't work.

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


author: John M
body: [@Michael.Gaskin](/t5/user/viewprofilepage/user-id/3781214) can you verify that the issue type for the issue(s) that are not working are 'incident'? The mapping only works for issues with a type of 'incident' ![2023-07-14_12-35-50.png](https://community.atlassian.com/t5/image/serverpage/image-id/269060i5F6D77DD78189A9E/image-size/large?v=v2&px=999 "2023-07-14_12-35-50.png")
How to batch obtain prometheus apikey on opsgenie integration?
Asked by olin.li:

HI?

I have a lot of prometheus integration on opsgenie, and I want to get the prometheus apikey on opsgenie integration in batches. How to batch obtain prometheus apikey on opsgenie integration?


Answers:
author: John M
body: Hi [@olin.li](/t5/user/viewprofilepage/user-id/5241623) ,

For security reasons API keys are never sent in API responses so unfortunately, you would need to obtain the API keys from the UI.

comments: author: olin.li
body: hi [@John M](/t5/user/viewprofilepage/user-id/4625213)

I need assistance in locating a Prometheus integration that I previously used but cannot remember which one. I have the API key, but with multiple integrations, I am unsure of which one to use. Is there a way to quickly identify the correct integration?
I want to run/trigger bamboo plan branch from Rest API
Asked by Shivani Pacharne:

I want to run/trigger bamboo plan branch from Rest API  

Tried using https://\<bamboo-url\>/rest/api/latest/queue/{projectKey}-{buildKey}  
this triggers my default plan branch in bamboo.  

is there any option to trigger specific bamboo plan branch through REST API?


Answers:
author: Alexey Chystoprudov
body: You need to pass buildKey of branch. Every plan branch has unique buildKey, for example master plan has key PRJ-PLAN-JOB1, then first plan branch will have key PRJ-PLAN0-JOB1, next one PRJ-PLAN1-JOB1. To see plan branch key check URL in browser when you see build results of plan branch

comments: author: Shivani Pacharne
body: Thanks [@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646)

It worked!


Tags: rest-api
Update project variable
Asked by mona.joshi:

I come across one link where it's describing about Project Variable. I am not able to find in bamboo, can you please help me?

Link: [Defining project variables \| Bamboo Data Center and Server 9.1 \| Atlassian Documentation](https://confluence.atlassian.com/bamboo/defining-project-variables-1018270685.html)


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@mona.joshi](/t5/user/viewprofilepage/user-id/5011291),

Which Bamboo release are you using right now? Project variables have been introduced in [Bamboo 7.1](https://confluence.atlassian.com/bambooreleases/bamboo-7-1-release-notes-1189793873.html#Bamboo7.1releasenotes-project-variables), so you might need to update your deployment to utilize them?
> Bamboo 7.1 brings you a new variable type - *a project variable.* Project variables are defined for a specific project, and have the same value for every plan that belongs to the project. If you want to define a variable for a specific plan, define a plan variable as described in [Defining plan variables](https://confluence.atlassian.com/bambooserverm/latest/using-bamboo/bamboo-variables/defining-plan-variables). To read more about project variables, see [Defining project variables](https://confluence.atlassian.com/bamboo/defining-project-variables-1018270685.html).

Cheers,  
Steffen
Null TemplateRenderer in BaseBuildConfigurationAwarePlugin sub-class when using Spring Scanner
Asked by Chris Cormack:

I have a pretty simple Bamboo plugin that was created using 'atlas-create-bamboo-plugin', however, now that I am adding some configuration I am hitting a null pointer due to 'getTemplateRenderer()' in 'BaseBuildConfigurationAwarePlugin' returning 'null'.

I have this in 'atlassian-plugin.xml':  

```
<additionalBuildConfigurationPlugin key="configuration" class="com.orgname.bamboo.githubStatus.Configuration">
    <resource type="freemarker" name="edit" location="config/edit.ftl" />
</additionalBuildConfigurationPlugin>
```

and com.orgname.bamboo.githubStatus.Configuration is implemented as:  

```
package com.orgname.bamboo.githubStatus;

import com.atlassian.bamboo.plan.Plan;
import com.atlassian.bamboo.plan.cache.ImmutablePlan;
import com.atlassian.bamboo.plan.configuration.MiscellaneousPlanConfigurationPlugin;
import com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin;

public class Configuration extends BaseBuildConfigurationAwarePlugin implements MiscellaneousPlanConfigurationPlugin {
    @Override
    public boolean isApplicableTo(@NotNull ImmutablePlan immutablePlan) {
        return true;
    }
}
```

I have tried overriding 'getEditHtml()' to track down that the NPE is happening in this line (and that getTemplateRenderer() is returning null):  

```
return this.getTemplateRenderer().render(templatePath, context);
```

By way of experiment, I have tried adding this to my Configuration class:  

```
@Inject
private TemplateRenderer myInternalRenderer;
```

and this fails with:

```
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.orgname.bamboo.githubStatus.Configuration': Unsatisfied dependency expressed through field 'myInternalRenderer'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atlassian.bamboo.template.TemplateRenderer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject()}
```

I am not sure where to take this from here, so any suggestions very much appreciated.


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@Chris Cormack](/t5/user/viewprofilepage/user-id/730957),

App development related questions are best asked in the [Atlassian Developer Community](https://community.developer.atlassian.com/), you have a greater chance to get feedback from other app developers there.

The question at hand seems to be appropriate for the [Atlassian Developer Tools category](https://community.developer.atlassian.com/c/atlassian-developer-tools/27), even though there is also a [Bamboo Development category](https://community.developer.atlassian.com/c/bamboo-development/31) for solely Bamboo related questions.

* To set expectations regarding the latter, you'll note that there are comparatively few Bamboo related questions - regardless, quite some Atlassian team members are monitoring the community by now, so hopefully they can loop in someone from the Bamboo team.

Cheers,

Steffen


Tags: bamboo-development

server
Bamboo installation -Failing to connect to database
Asked by venkat:

Hi

We are running on bamboo 8.2.5 and planning to create a multinode datacenter environment .when we try to install bamboo on new node it is not allowing further from the database connection and prompting that "Database contains existing data ".Can anyone suggest best way to deal with

1.for shared directory created an EFS and mounted on \<bamboo-home\>--\>datacenter--\>shared path.

2.Instances are placed in AWS.

3.And what would be the recommended load balancer to configure with both the nodes.![error.PNG](/t5/image/serverpage/image-id/233179i46CA21A4F5D192A1/image-size/large?v=v2&px=999 "error.PNG")


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

Additional Bamboo cluster nodes should not be configured from scratch like you are.

Whenever you add a new node to a Bamboo cluster, that node will remain idle, trying to acquire a lock on the DB and will not start if an active node is already running. The startup process on the standby node will only happen when the active node times out writing to the lock table on the DB.

So, in a nutshell, you need to:

* Install and configure the first Bamboo active node, the Database, Home and Shared home folders
* Start the first Bamboo active node
* Install the Bamboo binaries on the standby node(s)
* Configure an exclusive Bamboo home
* Mount the shared home folder (via NFS between the nodes)
* Start the additional node(s)

If you wish to test the standby node, you will have to shut down the active node and wait up to 5 minutes for the standby node to begin the takeover process.

Please check the following documentation on how to set a standby node in a Bamboo cluster:

* [Set up a Bamboo Data Center cold standby](https://confluence.atlassian.com/bamboo/set-up-a-bamboo-data-center-cold-standby-1063170556.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: venkat
body: Hello Edurado

Thank you so much for your time on answering this question.

We do installed bamboo setup file on new node and tried starting using start-bamboo.sh eventually it is pointing to all configuration paths and in the very next page while connecting to postgres DB samething happening even though the primary node stopped where it is halting with message like"bamboo data already exists".

Thank you

Venkatesh
Bamboo Version 8.2.2 - Search Is Not Returning All Possible Results
Asked by BOB BOB:

Does anyone know why performing a search from the Build Dashboard will not return all possibilities? I confirmed I am logged in and no filters are enabled.

Thanks!


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

You may have to force Bamboo to reindex the data. Please check the following URL:

* [Reindexing data](https://confluence.atlassian.com/bamboo/reindexing-data-289277251.html)

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
CANNOT ACCESS BAMBOO ON BROWSER
Asked by Divine Taminang:

I have installed the bamboo on my ec2-instance (t2-medium) but I cannot access it from the browser using the IP:PORT (i.e IP:8085). The prerequisites and bamboo have been installed successfully. I have started the bamboo (./startup.sh) and it says Tomcat is started. But I cannot access bamboo via the internet using IP:8085. When I try to access on the browser it says this site can't be reached! All ports are open (i.e port 22 and 80).

Why am I unable to access bamboo from my browser?

I will appreciate your help please


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

You need port 8085 to be open if you are going to run the service on that port.

From the server you are running it on, try fetching the local address with wget or curl to check that it's running ok - something like

wget localhost:8085

will fetch you a file that you can open and read - the text will contain the HTML for the login page if Bamboo is running.

comments: author: Divine Taminang
body: Under custom tcp, I opened port 8085 and it worked. Thanks
Update a task across multiple Bamboo plans
Asked by sriharsha kaliki:

Hello,

I want to update a task that is present in multiple plans. How to achieve this through bulk update? Does Bamboo has this feature?

Regards,

Sri Harsha.


Answers:
author: Eduardo Alvarenga
body: Hello [@sriharsha kaliki](/t5/user/viewprofilepage/user-id/5115185)

Welcome to **Atlassian Community**!

Modifying tasks in bulk updates is not available by design.

If you would like to make changes in bulk, we recommend you consider using [Bamboo Specs](https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html).

Best regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: sriharsha kaliki
body: ok Thanks [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)


author: Eduardo Alvarenga
body: No worries, make sure to accept the answer if that was helpful.
How to migrate from bamboo on-premises server to AWS server
Asked by sanjeev Kumar:

Hi team,

How to migrate from bamboo on-premise server to AWS server, can you please explain step by step


Answers:
author: Steffen Opel _Utoolity_
body: I'm unable to provide step by step instructions right here, you can deduce your own based on a couple of higher level ones though:

1. Run Bamboo on AWS - the Bamboo docs currently reference two options (see also the related question [Any Bamboo Data center installation guide using AWS](https://community.atlassian.com/t5/Bamboo-questions/Any-Bamboo-Data-center-installation-guide-using-AWS/qaq-p/1976258%20has answers with several options)):

* Release 9.1 - [Running Bamboo Data Center on a Kubernetes cluster](https://confluence.atlassian.com/bamboo/running-bamboo-data-center-on-a-kubernetes-cluster-1108673465.html)
* Release 7.2 - [Running a Bamboo server in AWS](https://confluence.atlassian.com/bamboo0702/running-a-bamboo-server-in-aws-1031178966.html)

2. Migrate Bamboo to AWS - the Bamboo docs provide two related guides (be sure to read them upfront so that you can consider modifications based on your approach to 1 above)_

* [Moving Bamboo between machines](https://confluence.atlassian.com/bamkb/moving-bamboo-between-machines-134873224.html)
* [Cloning a Bamboo instance](https://confluence.atlassian.com/bamboo/cloning-a-bamboo-instance-289277407.html)

Good luck!
Database setup never completes
Asked by George Lindholm:

Hi,  
I'm trying to set up a bamboo-8.2.6-jdk11 docker instance using postgres-12 but the installation gets stuck on the setting up the database step.

As far as I can the database has been set up, but it doesn't go past that.

I've tried several time, with different releases with no luck.

I've waited for up to 11 hours before aborting the attempt and trying something slightly different.

At this point I don't know what to try next

Thanks  
George


Answers:
author: George Lindholm
body: Looks like the web page was stuck.

When I accidentally entered the url in a different tab I found the the setup process had advanced to the next step

comments: author: George Lindholm
body: Side note, I tried the install several times and they all hung at the same place


Tags: server
Extracting value from bamboo variables
Asked by Syed Imtiyaz Alam:

There is a bamboo variable bamboo.planRepository.branchName that I am trying to use and extract some partial value and not as whole value.

I am using this variable as deployment release generation so i was trying this

${bamboo.planRepository.branchName}.Remove(1,5)-${bamboo.inject.shortCommitHash}-${bamboo.buildNumber}

but Remove does not work , basically I am trying to find if I do string manipulation.

or is there any way we can have custom variable which is basically string manipulation of this bamboo variables.


Answers:
author: Eduardo Alvarenga
body: Hello [@Syed Imtiyaz Alam](/t5/user/viewprofilepage/user-id/4015773)

Bamboo will add several environment variables that can be used on your Tasks. To have those variables changed and reinjected, you will have to use a Script Task and do the conversion there using either a Linux shell or Windows Powershell, or any other strung manipulation techniques you prefer.

After you have created the new variables, add them to a text file using a Java properties format (*key=value* ) and later on add an [*Inject Bamboo variables* task](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html#Configuringavariablestask-InjectBamboovariablestask) to pass the new variable to the next Tasks of the same Job or possibly other Stages (if using a "R*esult" scope).* I assume you already use something like that due to the *"${bamboo.inject...}"* example you've added to the question.

For example, you can run the following bash shell script to create a new string and feed it to a text file for later import:

```
#!/bin/bash
# Assuming bamboo_planRepository_branchName="Bamboo555" and I want it to extract only the "555" from it
# bamboo_planRepository_branchName="Bamboo555"
stripped_branch="${bamboo_planRepository_branchName:6}"

release_name="${stripped_branch}-${bamboo_inject_shortCommitHash}-${bamboo_buildNumber}"

echo "release_name=${release_name}" > release_name.txt
```

```
$ cat release_name.txt
release_name=555-abfg38bc-103
```

Then import "release_name.txt" in an Inject Bamboo variables task and use it as *"${bamboo.inject.release_name}"* or *"${bamboo_inject_release_name}"* if used by a shell script.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

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