youngmon/atlassian-qna huggingface dataset:
Unexpected Deployments Triggered - Want "master" Only
Asked by William King:

**Problem:**

Deployment process triggered by builds on branches other than master

**Background:**

We have a deployment process that is triggered by successful builds of the master branch. The deployment itself moves generated artifact to a remote server.

I recently started running "customized" builds of a non-master branch to generate artifacts I could manually download and test.

I was surprised to see that the deployment process was triggered by these builds and moving the artifact to our remote server.

**Steps:**

This is the deployment trigger. It looks to me like it should *only* activate on builds of master branch.

![trigger-configuration.png](/t5/image/serverpage/image-id/10376i94032A7646BAEB62/image-dimensions/284x237?v=v2 "trigger-configuration.png")

I create a build from some other branch of the build plan by

1. Click "Run \> Run customised"

![run-customized.png](/t5/image/serverpage/image-id/10375iEAD0F65E18AEDABB/image-dimensions/217x130?v=v2 "run-customized.png")

2. Enter desired branch and click "Run"

![run-constomized2.png](/t5/image/serverpage/image-id/10378i9DD67368A9C0E70D/image-dimensions/276x148?v=v2 "run-constomized2.png")

**Am I missing a setting? Is there an alternate way I should be generating builds from arbitrary non-master branches?**


Answers:
author: somethingblue
body: Hi William,

This is working as designed. Any successful build on that plan (branch or otherwise) will trigger the master deployment.

Cheers,

Branden

comments: author: William King
body: And to prevent that? To limit deployments to "master" branch builds only?


author: somethingblue
body: Hi William,

There is a feature request (Suggestion) that you can find at [BAM-18793](https://jira.atlassian.com/browse/BAM-18793). Please vote on that issue so we can get this behavior in front of the developers so we can see a change in Bamboo.

Cheers,

Branden


author: William King
body: Thanks Branden.

To my reading, that suggestion implies that it is possible to do what I'm asking.
> user will need to manually configure a deployment project to run on successful completion of a particular branch plan.

It sounds like I could configure the deployment to trigger on "master" only (a *particular branch*).


Tags: deployment

trigger
Exlude branches from single daily build trigger
Asked by Carlos Henriques:

Hello,

I have a Bamboo plan with Master and Develop branches.

I also have 2 triggers at parent level: one to build at every commit (Bitbucket Server repository triggered) and another to build every day at a specific time (single daily build).

The develop branch is set to use the same triggers from parent level. But, I would like to exclude Master from the single daily build.

How can I do this?

**Master:**

Trigger \> Bitbucket Server repository triggered

**Develop (branch):**

Trigger \> Bitbucket Server repository triggered

Trigger \> Single daily build

Thank you.


Answers:
author: rsperafico
body: Hello [@Carlos Henriques](/t5/user/viewprofilepage/user-id/581049),

You could remove the "Single daily build" and create a CRON job to trigger a particular job using Bamboo's REST API

<https://docs.atlassian.com/atlassian-bamboo/REST/6.3.0/#d2e1940>

```
curl -u USERNAME -X POST 'http://localhost:8085/rest/api/latest/queue/PROJ-PLAN'
```

Kind regards,

Rafael
ordering jobs
Asked by Jothi:

Hi,

I'm new to bamboo server.

I have a plan with couple of stages.

The first stage have 2 jobs namely package creation and SQL execution.

It have execution order like package creation and SQL execution.

But it should run like SQL execution followed by package creation as application need.

I can't change job execution order.( drag and drop is also not working)

can anyone help me on this?


Answers:
author: robhit
body: Hi Jothi,

Bamboo jobs are the elements which execute in parallel within a stage, so order makes no sense there.

Stages are the ones which execute sequentially within a plan.

And tasks execute sequentially within a Job.

So you have to reconfigure your plan to achieve your requirement here.

Thanks!

comments: author: Michael at Compute Thing
body: I was also looking to have ordering on jobs. I understand that jobs will run in parallel if there are sufficient agents, but when I have fewer agents than jobs, I would like to have some priority.

I have 4 test jobs, covering high priority and low priority tests across 2 target platforms. If I have 4 agents I would want all the test jobs to start together. But if only 2 agents are available, I would want the high priority tests run first. And if I only have 1 agent, I would want a specific platform to be tested first.


author: Fatima liyas
body: **okh**
Create User through API/CLI
Asked by Saugat Chowdhury:

Is there a way to create an User in Bamboo through REST API or through CLI ?


Answers:
author: robhit
body: Hi Saugat,

There is an open feature request in bamboo for implementing such feature but currently, it is not available.

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

Thanks!
Can't run groovy scripts
Asked by Jothi:

Hi,

I'm new to bamboo.

I installed bamboo 6.2.3 on centos 7.

I need to run groovy script as my task.

While I'm searching Task types in bamboo, it only displaying Grails,Grunt,Gulp.

I can't find any task type related to groovy.

Is there any other way to run groovy scripts as bamboo task type?

Can anyone help me on this?


Answers:
author: Edwin Kyalangalilwa
body: Hi Jothi,

You can use

```
#!/usr/bin/env groovy

groovy -v
```

inside a script task. Make sure groovy is in the path.

![Screen Shot 2017-12-04 at 01.00.59.png](https://community.atlassian.com/t5/image/serverpage/image-id/10351i6473A2A4D1988F26/image-dimensions/439x116?v=v2 "Screen Shot 2017-12-04 at 01.00.59.png")
Rerun a part of a completed build.
Asked by Jothi:

Hi,

I'm new to bamboo.

I have configured a single plan with 3 different stages where second 2 stages are manual stage.

When I'm trying to rerun the particular stage say stage 3, it requires to run previous stage say stage 2 also.

Seems I'm facing this case only in after successful run of stage 3.

When failure of stage 3 , I can able to rerun stage 3 alone.

but I need to rerun stage 3 alone after successful run too

Can anyone help me on this?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: It is not possible. You can check <https://jira.atlassian.com/browse/BAM-9611> for some context. Also, check the last comment about deployment projects.

comments: author: Jothi
body: Ok.thanks
Changing Artifact path to network attach storage
Asked by brent bae:

I've setup and configured bamboo instance on Azure VM and it was okay for few month until we reach the storage limit due to size of artifacts generated from each build.

So we decided to attach Azure storage(NAS) to the bamboo server(VM) so that we can store the artifacts on the Azure storage

I configured the bamboo artifact directory by following instruction on this page: <https://confluence.atlassian.com/bamkb/changing-paths-location-in-bamboo-427622809.html>

So basically I create artifacts folder in Azure storage so that the path to the artifact directory is something like /nasshare/bamboo/artifacts where /nasshare is Azure storage mounted on Bamboo server.

However, when bamboo runs a build plan which generates and greeting.txt as a artifact, I get following errors:

com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler: /opt/bamboo/bamboo-home/artifacts2/plan-11468801/JOB1/build-00006/greeting/greeting.txt: Operation not permitted

Unable to publish artifact \[greeting\]: Unable to publish artifact Job artifact: \[greeting\], pattern: \[greeting.txt\] for BAMT-AT-JOB1-6 via com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler@6dec53d4

When I check the directory, Bamboo actually creates greeting.txt file on that path but for some reason i fails to publish it and generate such error.

I have checked ownership and permissions for nasshare/bamboo/artifacts, the owner:group is not the same user and different group from the bamboo user but permission is actually 777. so should not be permission issue i guess..

Any idea how to resolve this?

Thank you


Answers:
author: robhit
body: Hi Brent,

If I am correct using Bamboo 6.2 or higher which has [Artifact Handler Feature](https://confluence.atlassian.com/bamboo/artifact-handlers-938641848.html). This feature has different options available to configure upon which creation and publish of artifacts depends.

Creation and publish of artifacts in Bamboo are two different things.  
If Bamboo is able to create the artifacts but unable to publish them then I think you are missing some configuration here and resulting in the above error.

You can refer this document to see what configuration will suit your requirement:

<https://confluence.atlassian.com/bamkb/bamboo-artifact-handlers-use-case-scenarios-939695899.html>

Thanks


Tags: artefact
bitbucket and bamboo management of ssh keys
Asked by Betty Li:

Hi support,

I have the following question:

login Bitbucket

go to "Manage Account"

SSH keys

you will see 50 -60 ssh keys for <http://bamboo.nanofluidics.com:8085>

we don't add those keys to Bitbucket, so how those keys are added there automatically?

Thanks,

Betty


Answers:
author: somethingblue
body: Hi Betty,

When Bitbucket connects it automatically adds SSH keys. In the current implementation it does not automatically clean them up so there is no way of telling which SSH key is the most current.

If you need to clean up the SSH keys you can delete them all and then save the Bitbucket Server linked repositories in **Bamboo** **Admin**` > `**Linked repositories**

`Hopefully that helps!`

Cheers,

Branden
A way to view build plan tasks WITHOUT edit privs?
Asked by Tiglath Suriol:

Does anyone know of a way, other than writing an app that does it though the API, to allow users to view (readonly) a build plan's configuration tasks details, scripts, etc.?

As far as I know it requires Edit privs, but perhaps there is another way.

Thanks


Answers:
author: rsperafico
body: Hello [@Tiglath Suriol](/t5/user/viewprofilepage/user-id/1168063),

It is required edit permissions in order to view/edit plan configuration. Alternatively, you could review the configuration from database (not straightfoward as it seems though :()

Kind regards,

Rafael


Tags: permission
Does Bamboo Integrate with Oracle OATS
Asked by Leo Rivera:

Does Bamboo have a plugin to integrate with Oracle OATS, similar to existing configuration with HP ALM (now owned by Micro Focus).

Thank you.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope this thread will help

<https://community.atlassian.com/t5/Bamboo-questions/Can-we-Integrate-Bamboo-with-Oracle-OATS/qaq-p/861601>

Cheers,

Gonchik Tsymzhitov


Tags: continuous-delivery

oracle
How do you remove a user from the permissions tab on a build plan
Asked by Laura Hinojosa:

We have a build plan where an individual user was added. We want to remove him from the build plan permissions. But there are only options to add a user/group or change the user's permissions level. But there is no option to actually remove a user


Answers:
author: Steffen Opel _Utoolity_
body: This is indeed not easy to discover (and also not mentioned in the [plan permissions](https://confluence.atlassian.com/bamboo/bamboo-permissions-369296034.html#Bamboopermissions-Buildplanpermissions) docs) and might thus be considered a slight usability flaw:

You simply need to remove all individual plan permissions from that user by toggling each active checkbox individually - once all checkboxes are cleared, the user does not have any plan permissions anymore, and if you refresh the page the user's row will also be gone.

comments: author: Laura Hinojosa
body: aha!!! Nice trick! Thank you very much for your reply :) It worked!!
License key problem in centos
Asked by Jothi:

Hi,

I'm new to bamboo.

I installed bamboo 6.2.3 on centos 7.

When I'm trying to open in browser it asking for license.

since i have installed **30days trail version for free**. Hope trial version never ask the key.

Seems my application **needs the license key** to allow further.

Can anyone help me on this?


Answers:
author: Grzegorz Lewandowski
body: In order to use trial period you should generate evaluation license for Bamboo product and just use it.

You can generate license on <http://my.atlassian.com/> portal.

comments: author: Jothi
body: Thanks. I got the license for the product.


Tags: bamboo-administration
Proforma Data Connection Return Values for Current User
Asked by Robert Cook:

I have a Proforma Data Connection which uses a REST API connection type to get the values returned from a JQL query like shown below:

/rest/api/2/search?jql=project%20=%20%22Test%22%20AND%20issuetype%20=%20%22Intake%22%20AND%20reporter%20=%20currentUser()%20AND%20status%20=%20Complete

The goal is to return the found issues on the form field pertaining to the user currently interacting with the form. However, it currently only returns the issues which are reported by myself. I am not sure why it only returns for myself instead of the current user who is interacting with the form.


Answers:
author: Joseph Chung Yin
body: [@Robert Cook](/t5/user/viewprofilepage/user-id/5228613) -

Hi Robert:

The problem with your RESTAPIs called JQL query usage of "currentUser()", this JQL query will only return the issues which are reported by the account that is executing the call.

Which account is used in your Data Connection setup? Please advise so we can assist you further.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Robert Cook
body: Ah I am using a Personal Authentication Token to support the API call, I am assuming that is causing the issue. Is there a way I can circumvent this so that the data connection will return the applicable results for the current user?


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

proforma

rest-api

server
licensing around internal customers
Asked by Jason Lingling:

We're assessing Jira Service Management (Cloud) to be used for Service Desk supporting internal users.

We don't want our users to have to register or sign-up or create an account before they can access the portal and lodge tickets or track their incidents/requests. Basically we don't want to add another username+password for them to remember/manage

Preferably we want to be able to use SSO (we use Azure)

We have five (5) agents so I understand they will require a license,

We have about 350 users, now my question is do we need to purchase a license for all of them just so they can access the portal and raise requests/incidents?

Thanks


Answers:
author: Joseph Chung Yin
body: [@Jason Lingling](/t5/user/viewprofilepage/user-id/5441135) -

Welcome to the community. In Atlassian Cloud env, if you want use your own IDP to control users accounts, then you will need to purchase Atlassian Access product. See the links below on this product -

<https://support.atlassian.com/security-and-access-policies/docs/understand-atlassian-access/>

<https://www.atlassian.com/software/access/pricing>

<https://support.atlassian.com/subscriptions-and-billing/docs/manage-your-bill-for-atlassian-access/#Which-users-are-are-not-considered-unique-billable-users>

Using Atlassian Access, your users can just use your company's users account (i.e. email address and creds) to access the portal UI for JSM without the need to create a separate account/cred with Atlassian.

Keep in mind that your users (internal) are treated as "Customers", and there is no limit on counts and cost for them to access JSM portal UI to submit issues for your teams. JSM license is only required for Agents who need to handle/process the issues.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Jason Lingling
body: Thanks, I did saw that hence I wanted to find out more to confirm.

This is kind of a dealbreaker as the cost of Atlassian Access is prohibitive (at least for our intended use)


author: Asha Goyal
body: Hello [@Jason Lingling](/t5/user/viewprofilepage/user-id/5441135)

No, for raising the request you don't need to purchase the licnese. All you need to give them the Customer access.

For Jira Service Management, customers doesn't need to have license to access the portal UI. However, they will need to have a valid Atlassian account (personal account) to access your JSM projects. This also assume that you already configured project where customers are assigned with the project's "Service Desk Customers" project role for create issue permission.

Please see the link for futher details on adding customer.

<https://support.atlassian.com/jira-service-management-cloud/docs/add-a-customer-to-a-service-project/>

Please Accept and Vote if it helps.

Thanks


Tags: cloud

jira-service-management

jira-service-management-cloud
Is it possible to copy a Radio Button's value in Automation?
Asked by dave.segreto:

I have an automated Link set up to happen upon creation.  
The link-event triggers a another Automation that attempts to copy some fields.

The automation looks like this:

For: Linked Issues

Then: Edit issue fields \[Advanced\]

```
{ 
"fields": {
"customfield_1": "{{issue.issuelinks.inwardIssue.customfield_1}}",
"customfield_2": "{{issue.issuelinks.inwardIssue.customfield_12}}",
"customfield_3": "{{issue.issuelinks.inwardIssue.customfield_13}}",
"customfield_4": "{{issue.issuelinks.inwardIssue.customfield_4}}"
}
```

3 our of the 4 work.

The one that fails is a Radio Button. It fails like this:

*TCKT-3903 (Specify a valid 'id' or 'name' for FieldName (customfield_4))*

If I use customfield_4.name, I get this:

*Additional fields contains invalid field(s) in 'update' or 'fields' section. customfield_4.name*

Do we know if there is a way to assign the value of a Radio Button field from one ticket to another? It is, in this case, the same custom field.


Answers:
author: dave.segreto
body: That did not work, but it did lead me to the answer.

"id" seems to fail, but "value" works! I also changed it from inwardIssue to destinationIssue for the sake of ease in the future.

```
{ 
  "fields": {
  "customfield_1": "{{destinationIssue.customfield_1}}",
  "customfield_2": "{{destinationIssue.customfield_12}}",
  "customfield_3": "{{destinationIssue.customfield_13}}",
  "customfield_4": { "value": "{{destinationIssue.customfield_4.value}}" }
  }
}
```


author: Kalyan Sattaluri
body: Hello [@dave.segreto](/t5/user/viewprofilepage/user-id/3161258)

Please try

{   
"fields": {  
"customfield_1": "{{issue.issuelinks.inwardIssue.customfield_1}}",  
"customfield_2": "{{issue.issuelinks.inwardIssue.customfield_12}}",  
"customfield_3": "{{issue.issuelinks.inwardIssue.customfield_13}}",  
"customfield_4": { "id": {{issue.issuelinks.inwardIssue.customfield_4.id}}}   
}  
}

Let us know if it does not work and we can check next steps.

reference: [https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#:\~:text=%22customfield_11444%22%20%3A%20664-,Radio%20button%20custom%20field,-Select%20a%20single](https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#:~:text=%22customfield_11444%22%20%3A%20664-,Radio%20button%20custom%20field,-Select%20a%20single)

comments: author: Kalyan Sattaluri
body: Just FYI for others reference who run into this post, not sure what [@dave.segreto](/t5/user/viewprofilepage/user-id/3161258) tried as he hasn't shared anything but ID should also work. Its in the documentation itself.


author: dave.segreto
body: Agreed. Try using "id". It didn't work for me, giving this same error:

```
TCKT-3903 (Specify a valid 'id' or 'name' for FieldName (customfield_4))
```

However, if it fails, try using "value" in its place.


Tags: cloud

jira-service-management

jira-service-management-cloud
Update Summary field From multiple Form Data fields
Asked by Yunus Choudhury:

Hi,

I am new to administering Jira, and I have made a custom employee onboarding form using Jira Forms and tying it to a request type.

I am trying to pull multiple values from my employee onboarding form, and populate the summary field. That way I can hide the summary field from the customer portal and have it populate on the issue view for agents.

I am trying to populate the summary field with "first name, surname - office location - start date"

I am aware that I can link a form field with a jira field, but it allows me to attach one field to the summary field.

Is there a way to pull multiple fields together into the summary?


Answers:
author: Kristj?n Geir Mathiesen
body: Hi [@Yunus Choudhury](/t5/user/viewprofilepage/user-id/5441081) and...

![giphy](https://community.atlassian.com/t5/image/serverpage/image-id/309368i292D35A7F3353883/image-dimensions/304x304?v=v2 "giphy")

Why don't you allow user to create the ticket. Have all the above fields on your form linked to individual Custom Fields. Set a default value in the Summary field and hide it. Then create an Automation rule that uses smart values to read from all these Custom Fields and replace the default value in the Summary field?

Like:

{{issue.customfield_firstname}}, {{issue.customfield_lastname}} - {{issue.customfield_officelocation}} etc.

HTH,  
KGM


author: Fernando Eug?nio da Silva
body: [@Yunus Choudhury](/t5/user/viewprofilepage/user-id/5441081) , Welcome to the Atlassian Community!

The simplest way to do this is to associate Jira fields with the forms field in the fields you want to use to place the Summary.

Then, you will create automation in your project. Something simple, like:

Trigger: Issue Created  
Action: Edit Issue \> Summary

In the Summary, you just need to pass the variable of those fields that you want to use to fill the summary.

You can use the following: **{{issue.FIELD NAME IN JIRA}}**

So you can combine different formats, as in your example: **{{issue.First Name}},{{issue.Surname}} - {{issue.Office Location}} - {{issue.Start date}}**

I'm assuming that for each value you'll have a field. This is one of the ways you can achieve this. If you want to know more about Jira variables and Smartvalues, read here: [Jira smart values - issues \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/)

If you want to see some automation examples you can look for in [Automation Playground \| Atlassian](https://www.atlassian.com/software/jira/automation-template-library/rules)

Hope this helps you :)

Cheers,

Fernando


Tags: cloud

jira-cloud

jira-form

jira-service-management

jira-service-management-cloud