youngmon/atlassian-qna huggingface dataset:
Update Alert via API
Asked by Jeremy Worden:

Is there any way to update details of an alert via the API? I see that there's a way to add Tags and Notes, but specifically I want to update:

{

"details":{"key1":"value1","key2":"value2"},

}


Answers:
author: Nick H
body: Hi [@Jeremy Worden](/t5/user/viewprofilepage/user-id/4223458) ,

You can use the [Add Details API request](https://docs.opsgenie.com/docs/alert-api-continued#add-details-custom-properties-to-alert) to update the details / extra properties of an alert.

The request is a POST, but if you adjust the body of the detail key that needs to be updated, it acts more like a PATCH.

![deatils comm 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125673iC8C9C3F0CB385EF2/image-size/large?v=v2&px=999 "deatils comm 1.jpg")![deatils comm 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125676i835CF77CD78A14E2/image-size/large?v=v2&px=999 "deatils comm 2.jpg")![details comm 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125677i53BAEF6643CFA25E/image-size/large?v=v2&px=999 "details comm 3.jpg")![deatils comm 4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125678i4AB628734E8E65E1/image-size/large?v=v2&px=999 "deatils comm 4.jpg")

Hope this helps! Let us know if you run into any questions or issues.


author: Jeremy Worden
body: I found my answer. Need to POST to: <https://api.opsgenie.com/v2/alerts/12/details?identifierType=tiny>


Tags: cloud
Ho can I obtain a license for Opsgenie?
Asked by Anthony Barnett:

I would like to obtain a license to add Opsgenie to my Atlassian product catalog.

Please tell me how to go about getting this done.

Thank you,


Answers:
author: Nick H
body: Hi [@Anthony Barnett](/t5/user/viewprofilepage/user-id/4158916) ,

If you are a site admin, you should be able to add Opsgenie to your Atlassian product catalog by going to <https://admin.atlassian.com/>

From there, click into your site \>\> Manage Subscriptions tab \>\> click the Add more Atlassian products button:

![licenses comm 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125647iB93892F3A86279C7/image-size/large?v=v2&px=999 "licenses comm 1.jpg")

Opsgenie should be available to try for free in this page.

comments: author: Anthony Barnett
body: I have a Trial Opsgenie account which is now suspended. So I will not be able to view bill. I need to know what the license cost will be per user, etc.

Please help so I can begin using this product.

Thank you,

Anthony Barnett

anthony.barnett@purple.us


author: Nick H
body: Hi [@Anthony Barnett](/t5/user/viewprofilepage/user-id/4158916) ,

You can view plans and price per user here: <https://www.atlassian.com/software/opsgenie/pricing>

I've adjusted your role from Admin \>\> Owner so you have access to the Billing tabs.

Let us know if you have any additional questions or issues.


author: Anthony Barnett
body: Hi Nick,

Thanks for your help.

I now just need to know the breakdown for the price for the Enterprise plan for Osgenie.

How much are the licensing fees, are they per user or per month or a combination of both?

Specifically, how many users does the $175.00 monthly cost support?

Also how many users are billed $29 monthly and how many will be billed $35 monthly?

Thank you,

Anthony Barnett


author: Nick H
body: Pricing = per user per month.

The enterprise plan is $29/user/month on an annual plan, or $35/user/month on a monthly plan. There are also discounted prices depending on the volume of users purchased:

![licenses comm 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125844i6A27B5ABAAE68C9C/image-size/large?v=v2&px=999 "licenses comm 3.jpg")

The pricing page has a built in calculator. You can toggle between annual and monthly plans to know the cost of each:

![licenses comm 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/125845i6602D8EEACD87B8D/image-size/large?v=v2&px=999 "licenses comm 2.jpg")


Tags: cloud
Script task in Bamboo
Asked by Yogesh Mude:

Team,

I wanted to copy the files from bamboo build dir to a remote server using script task.

I tried with SCP but getting below error.
> tput: No value for $TERM and no -T specified

any help or assistance will be appreciated.

Thanks.


Answers:
author: Yogesh Mude
body: I put in "t" switch and it worked without error message.


Tags: bamboo-administration

script
bootsrap failure
Asked by adams kpewa:

[bamboo boostrap fails](http://eadss-bamboo.primrosenet.net/error/errorEvents.action?next=%2F "Bamboo")

1) I have chown the owner from root to bamboo, restart bamboo application from the installation directory and it works

However, the user changes back to root instead of bamboo

I have to change the user every morning and repeat same process rather than automatically coming up after reboot.

What will be a permanent fix for this issue so that the application will will automatically comes up after it shots down 9:30 pm every night and comes back up at 6:30 am every morning


Answers:
author: Daniel Ebers
body: Hi Adams,

welcome to the Atlassian Community!

It is not a normal case that the owner of the diectory changes back to user 'root'.

Try to capture when this happens and which process or user the change is caused by to get to the bottom of that case. This is a low level job - in general it has nothing to do with Bamboo.

I'd start by looking at cronjobs or an automation like Puppet or similar which might be updating the owner of the directory.

Cheers,  
Daniel
Bamboo setup
Asked by siddhaling dapure:

I was doing bamboo setup and at the last step it has failed with the blow error. How to solve this-please guide

Error while trying to initialise Bamboo Container. java.nio.file.AccessDeniedException: C:\\bamboo-home\\xml-data\\configuration\\cipher\\cipher.key_0

You cannot access Bamboo at present. Look at the table below to identify the reasons:

TimeLevelTypeDescriptionException

|---------------------|-------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| 2020-07-25 21:43:28 | fatal | bootstrap | Error while trying to initialise Bamboo Container. java.nio.file.AccessDeniedException: C:\\bamboo-home\\xml-data\\configuration\\cipher\\cipher.key_0 | N/A |


Answers:
author: Alexey Chystoprudov
body: It looks like <https://jira.atlassian.com/browse/BAM-18650> . Please follow workaround section


author: Jimmy Seddon
body: Hi [@siddhaling dapure](/t5/user/viewprofilepage/user-id/4027160),

Welcome to the Community!

You might want to check out this answer here:

<https://community.atlassian.com/t5/Bamboo-questions/bamboo-cipher-keys-are-seemingly-not-generated/qaq-p/277225>

Looks like there a re a couple of things that could be wrong, incliding the accoutn runnignt he bamboo server service not having permissions to write to that ciper.key_0 file.

I hope that helps!

-Jimmy
how to customize email notification on bamboo
Asked by Aasha:

HI,

Can someone help me how to customize the email notification on bamboo. We have the notification templates on WEB-INF file. Eventhough we changes the coding still no changes applied after the server restart. Can someone help us to how to work on this.

Regards,

Aasha.


Answers:
author: Gonchik Tsymzhitov
body: That one will help you

<https://confluence.atlassian.com/bamboo/modifying-notification-templates-289276982.html>
How do I size a Bamboo server for remote agents
Asked by kms-sheehan:

I want to run a Bamboo server with a second server that will run remote agents. How do I size that server? Is there a recommended size (CPU and memory) per agent?


Answers:
author: Daniel Ebers
body: Hi,

the probably often given and more generic answer is: that depends on your usage scenarios, number of build and on how your expectations towards performance and probably needed waiting times are.

Please find a best practice guide on hardware considerations here:

<https://confluence.atlassian.com/bamboo/bamboo-best-practice-system-requirements-388401170.html>  

For more specific sizing details you would have to make own tests for sure.  

Maybe you find this video also adding up some insights - at least it is quite entertaining.

<https://www.atlassian.com/de/wac/company/events/summit-us/watch-sessions/2012/archives/dev-speed/moneypenny-speaks>

Cheers,  
Daniel

comments: author: kms-sheehan
body: The presentation was helpful but that hardware guid is not. It talks only about local agents and the Bamboo server itself.

I realize sizing agents has a lot to do with what they are doing but if I want to run 10 agents on a particular VM that is allocated should I have at least 1 CPU core per agent and 2 GB RAM? or more or less?

I'm just looking for any sort of basic sizing assuming that all of the agents could be in use at a time.
build trigger via rest api not working for bamboo spec build plan
Asked by Saif:

I have a build plan tracked by bamboo spec repo. I am hoping to Queue a build via rest api/CLI for this plan branch, but unable to trigger any due to below error:

**error** : `Client error: Build <projectKey>-<planKey> has state SUCCESSFUL. It is not eligible to be restarted.`

Can someone please help


Answers:
author: Saif
body: I was actually using Build Number as well in my api call.

I corrected the problem.

No issues now.


Tags: spec
A new developer is not able to create a new release in the bamboo plan.
Asked by mirceaconstantin58:

A new developer is not able to create a new release in the bamboo plan.

A new developer who is part of the new group of developers is not able to see create release option like other developers who are in the same group

![create relrease.PNG](/t5/image/serverpage/image-id/104135i8A9DAA6814B64696/image-size/large?v=v2&px=999 "create relrease.PNG")

I set up properly the permissions on the repository for the group of developers who will nee dot create a new release. Additionally, I set the project permission

[Using repository permissions](https://confluence.atlassian.com/bitbucketserver/using-repository-permissions-776639771.html "Using repository permissions")   
[Using Project permissions](https://confluence.atlassian.com/bitbucketserver/using-project-permissions-776639801.htm "Using Project permissions")

Is any particular reason why only the new developer is not able to see create release option like the other developers from the same group of developers?


Answers:
author: Alexandr Tsybouk
body: I'm struggling with the same problem


Tags: bamboo-administration
Is there a way to find all the jobs currently under my bamboo installation
Asked by Rajesh Patwardhan:

I want to find a inventory of all the builds that are currently running on my Bamboo installation.

Also I would like to know the linked repository for these build jobs.

\[ if it is already documented then do please point me in the right direction. I am newbie to bamboo. \]


Answers:
author: Ramil Navares
body: you might want to use rest api for that one.

/rest/api/latest/plan - list all bamboo plans

iterate the result then per plan get the latest build result like

/rest/api/latest/result/{bamboo plan key here}/latest?expand=vcsRevisions.vcsRevision,plan.stages.stage.plans.plan

iterate the result again and if there's a result for vcsRevisionKey, then that should be linked to a repo and dig to vcsRevision and you'll find the repository name.![example-vcsrevision-repo.png](https://community.atlassian.com/t5/image/serverpage/image-id/105039i46D7C97652CABE3B/image-size/large?v=v2&px=999 "example-vcsrevision-repo.png")

hope that'll give you on what you're looking for
[BUG?] How to declare an emtpy variable in Bamboo YAML specs?
Asked by fstr:

Hi,

I'm using Bamboo v7.0.4.

I have created a Bamboo plan with YAML specs and **I would like to define an empty plan variable**. If a user doesn't provide a value when they trigger the plan, the plan will have a check in place and fail.

I want to avoid using a dummy value as a placeholder value.

Bamboo plan as YAML specs to reproduce the issue:

```
version: 2
plan:
  project-key: ABC
  name: Empty Variable Test
  key: EVT

variables:
  MY_VARIABLE: ""
```

Using null as a value instead of an empty string, will lead to the same result:

```
version: 2
plan:
  project-key: ABC
  name: Empty Variable Test
  key: EVT

variables:
  MY_VARIABLE: null
```

Both will lead to an error when the specs are scanned by Bamboo:

```
23-Jul-2020 14:25:18	Bamboo YAML import failed: Could not determine YAML document version: variables / MY_VARIABLE: String must not be empty.
```

I flagged this topic as a **probable bug,** since it's possible to declare an empty variable when you configure a plan manually and it's also possible to then export the plan into Java specs, so I assume Java specs also allow empty variables.

```
 .variables(new Variable("MY_VARIABLE", ""))
```

I checked the Bamboo bug tracker in advance and couldn't find any related ticket.

Cheers


Answers:
author: Alexey Chystoprudov
body: YAML Specs doesn't allow to have empty values for String elements. So only workaround is to use dummy value

comments: author: fstr
body: Thanks for your clarification that the only solution right now is a dummy value.

Do you agree that this is a bug / regression compared to manual variable creation and Java specs, which both allow empty values, and should be fixed?


author: Alexey Chystoprudov
body: YAML is not replacement for Java code. You can't have loops or inline documentation or enums or what ever strict compilable language gives you. It's not possible to submit YAML from command line without repository configuration.

What I want to say is that some design decisions were made during YAML Specs implementation. One of them is inability to support empty Strings.

We're constantly working to improve parity between Java and YAML specs as hear strong demand from customers.

Created <https://jira.atlassian.com/browse/BAM-21021> to track feedback and interest.


author: Brett Shelton
body: [@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646) ,

Bamboo should export only valid YAML specs though; If the exported YAML is invalid or incomplete, it should indicate that.

If a **complete and valid YAML spec** can not be exported from a plan, it should:

1. Indicate what is not supported
2. Fail the export (and suggest changing configuration or exporting as Java spec)


Tags: plan

spec

variable

yaml
Unable to publish bigger size artifacts
Asked by Neha:

For frontend we have one tar.gz that is publishing fine which is around 8MB. And for backend we have one fat jar which is around 150MB. (Also tried to compress it around 120MB and publish, yet failed. How ever small size file publishing in the same stage works fine.) since it is a build fat jar, which we use only once to deploy on PCF, it is fine to not store it on nexus.


Answers:
author: Jimmy Seddon
body: Hi [@Neha](/t5/user/viewprofilepage/user-id/3851911),

Welcome to the Community!

What error message is displayed in the build log when you are trying to publish that artifact? We have a 500 MB package that we store regularly without any issues.

Thanks!

-Jimmy

comments: author: Neha
body: Hi [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822)

Here is the error

21-Jul-2020 05:11:26 com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


author: Jimmy Seddon
body: Hi [@Neha](/t5/user/viewprofilepage/user-id/3851911),

I'd take a look at the answers in either of these two posts both look to point to the same type of root issue:

<https://community.atlassian.com/t5/Bamboo-questions/PKIX-path-building-failed-on-Bamboo/qaq-p/1066964>

<https://community.atlassian.com/t5/Bamboo-questions/Bamboo-remote-agent-setup-getting-error-as-quot-Unable-to-find/qaq-p/9374>

In either case it sounds like SSL Cert issues. Is this building on a remote agent that may not have the Bamboo Server's certificate installed?

I hope those answers lead you to the solution.

-Jimmy


author: Neha
body: Hi [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822)

I am just wondering If this is SSL cert issue then how it is working for artifacts with smaller size.


author: Jimmy Seddon
body: To answer that, we'd need to start by looking closer at your Bamboo environment. Do you have multiple remote agents? Are both of these artifacts a part of the same build job? It's possible that the smaller one that is working is building either on a local agent, or one of the remote agents that doesn't have SSL issues.

I hope that helps!

-Jimmy
I created a plan with multiple repositories, I want to checkout a specified repo based on requireme
Asked by rjindal1:

I have 2 repo linked to my plan, now while running the plan at run time i want to checkout only one repo.

For instance i have repo1 and repo2 linked to my plan.

I have a job to checkout the repo1 while running my plan, not repo2. I ahve stored my ansible playbook in those repo and want that ansible playbook in repo1 will run not playbook in repo2.

Method how it can be attain.


Answers:
author: BRAJESH KUMAR SHARMA
body: Could you please more clear to explain your requirement?
Bamboo - How do I clean the deployment directory after deployment to save disk space
Asked by Shivam Singh:

For each of the environment in our deployment plan, a deployment directory is created and each having the same content that consumes disk space, how can we clean the deployment directory. I know for build directory there is a checkbox to clean the build dir after each build, i want similar for deployment plans as well


Answers:
author: Ramil Navares
body: Never come across of a checkbox to clean up in deployment unlike the build. It's only the "Clean working directory task" but given your deployment directory is within your working directory and it should work but if not then you'll need to do a script it out.


Tags: bamboo-administration

bamboo-development
There is a licensing bug - 10 job limit
Asked by Damir Reic:

So I purchased 10 job license and on 10th job I am not able to add branches.   

I am getting error:  

*Unable to create plan branch for plan: XXXXX, branch: VCS Branch \[master\]. Could not create plan, plan limit has been reached. You currently have 10 plans and your license allows only 10 plans.*

If I were to count all branches for all 10 jobs with this logic I would have 30 jobs.... Please assist.


Answers:
author: Jeyanthan I
body: Hi Damir,

Starting from Bamboo 6.9 onwards, Bamboo counts only 'unique' jobs. For instance, plan branches are not considered 'unique' and thus they are not countend against the job count.

Please review [this KB article](https://confluence.atlassian.com/bamkb/bamboo-starter-license-checking-number-of-bamboo-jobs-for-license-restrictions-950278536.html) to calculate the number of unique jobs present in your instance.

Hope that helps!

Cheers,  
Jey
Can we have restriction based on JIRA Groups in SVN
Asked by Sagar Dhedia:

Hi,

I am new to CROWD.I wanted to know can be restrict access to SVN repositories based on JIRA Groups.Giving access to users who belong to certain JIRA groups.

Also,Can we restrict access to SVN based on reviewers selected in Crucible?

Thanks,  
Sagar


Answers:
author: Andrei [errno]
body: take a look at commit acceptance plugin:

<https://studio.plugins.atlassian.com/wiki/display/CMMT/JIRA+Commit+Acceptance>

all the building blocks are there - you could enhance the code to satisfy your reqs

comments: author: Sagar Dhedia
body: Thanks will have a look into it .
Administrator and LDAP user name are the same, cannot log in anymore into CROWD.
Asked by david woodson:

I used a name for the administrator account in CROWD that is the same as a user name in the LDAP Active Directory that i set up. Everything worked fine until I changed the order of the name search and now I cannot log in anymore. Any thoughts besides re-installing from scratch? Is there a way to go into the database perhaps and change the order of the name search of the directories or something?


Answers:
author: Colin Goudie
body: Yeah, you can do that in the database.

It will be in the cwd_app_dir_mapping

Switch around the list_order field values so that your internal crowd directory is checked first


author: BernardoA
body: Probably the internal crowd directory could be set as "F", if so is necessary to run this following query:

update cwd_app_dir_mapping set allow_all= 'T' where directory_id='xxx'

Generally we recommend to backup the databse before any modification.

Cheers,

Bernardo
Crowd - Mercurial Connector?
Asked by Andrei [errno]:

are there any success stories with using Crowd for Mercurial authentication?

search suggests:  
<https://jira.atlassian.com/browse/CWD-2267>

are there any other links/pointers?


Answers:
author: Peter Bernier
body: I'd also be quite interested in the ability to have Crowd manage authentication for Mercurial repositories...


Tags: connector

mercurial
How to troubleshooting crowdid?
Asked by gmchen:

How to use crowdid as an openid providers?


Answers:
author: Colin Goudie
body: Have you looked at the documentation?

<http://confluence.atlassian.com/display/CROWD/CrowdID+Administration+Guide>


author: gmchen
body: <http://crowd.example.com:8095/openidserver>

My OpenID is ok: <http://crowd.example.com:8095/openidserver/users/username>

When I open [http://crowd.example.com:8095/openidclient](http://crowd.example.com:8095/openidclient%20)

input My OpenID: <http://crowd.example.com:8095/openidserver/users/username>

the error is :

Authentication Failed: Could not make an authentication request to your OpenID provider. Check your OpenID URL points to valid OpenID provider.

What's the problem?
How to check your openid is ok when use crowdid?
Asked by gmchen:

<http://crowd.example.com:8095/openidserver>

My OpenID is ok: <http://crowd.example.com:8095/openidserver/users/username>

When I open [http://crowd.example.com:8095/openidclient](http://crowd.example.com:8095/openidclient%20)

input My OpenID: <http://crowd.example.com:8095/openidserver/users/username>

the error is :

Authentication Failed: Could not make an authentication request to your OpenID provider. Check your OpenID URL points to valid OpenID provider.

What's the problem?


Answers:
author: John Chin
body: Hi there,

I notice there is bug report raised in Atlassian, please see [CWD-1841](https://jira.atlassian.com/browse/CWD-1841). Moreover, the bug was fixed in Crowd version 2.5.3

Hope its help.


Tags: openid
Understanding Crowd Alias settings in JIRA
Asked by Dylan_Wilson:

I am trying to integrate a longstanding JIRA installation with Crowd and our corporate AD. I can login to jira using my corporate login via Crowd and my "old" JIRA login.

I setup aliasing in Crowd and understand that I still have to use my old username (right?), but I expected to use my AD password?

Could someone explain exactly how this should work. Do I use my old JIRA username when logging into JIRA with my AD password ?

(I still have the JIRA authenticator enabled but second in the hiearchy).

Thanks,

Dylan


Answers:
author: EddieW
body: Hmm, that's not quite my take on the recommended use of aliasing. I beleive aliasing is more intended for cases where several apps are using crowd but all have slightly different IDs (i,e. confluence vs jira). In your case you are migrating the entire user population from internal management to extenrla management.

1. Ignoring your "old" id, get jira configured to use crowd as a directory within Jira, and authenticating using both the new username and new passowrd (both from AD)
2. Deactivate all the non-AD accounts (not removeing them!) <http://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Atlassian+JIRA#IntegratingCrowdwithAtlassianJIRA-KnownLimitations>
3. Use the JQL to have users migrate any previously owned or created tickets to their new username via the batch updater.