youngmon/atlassian-qna huggingface dataset:
Current Behavior of Plan Branches in Bamboo
Asked by ashleyg:

I would like to know a few things here about the current behavior of plan branches in bamboo for latest version.  
1) With auto branch enabled setting, if someone manually deletes the plan branch and re-creates it within the plan , will that be automatically cleaned up by bamboo in sometime. Please note the corresponding Bitbucket branch is still intact and nothing has been done there.

2) Every time that one does as mentioned above, i believe a new branch-id is created for the plan branch even if the Bitbucket branch is the same and has been there ever. Having said so, does bamboo just look after the branch details in accordance with the Bitbucket repository like detected_deletion_date, etc or how is it recorded within bamboo database.

3) With auto branch setting after a certain period of inactivity, the branches automatically gets cleaned up from the plan, and for any later commits to the branch we have to manually re-add the branch in the plan for the builds to work. I wonder if these branches again get auto cleaned up next time that bamboo does a auto clean activity or they remain active in the plan as long as their corresponding Bitbucket branches have some level of activity going on.

All these questions are to address how bamboo tracks the plan branches. Because as long as the branch in Bitbucket has not changed/deleted, the plan branches don't have any detection_deletion_date and if they are manually deleted or get deleted and re-added as per #3, how does bamboo then track those branches.Does bamboo still refer to old deletion date or how everything works.

Any help here would be greatly appreciated.

Cheers,

Ashley


Answers:
author: Ellie Z _they_them_
body: Hi Ashley,

Thanks for your questions!

1. If the plan Branch is deleted and then recreated, the branch will not be automatically cleaned up until it hits the inactivity threshold defined in the branch configuration.  

2. You are correct, a new branch ID is created in this scenario.  
   Yes, Bamboo will refer to Bitbucket for the detected_deletion_date and similar fields. These are populated when we receive a Branch Deleted Event from Bitbucket.  

3. Given items 1 and 2, we would show the newly re-added branch as a new object, which would have its own deletion date field. This will not trigger the cleanup, and it will remain active as long as the linked Bitbucket branch is active.

I hope these help!

Cheers,

Elias Zeidan  
Atlassian Support


Tags: bamboo-administration

bamboo-development

bitbucket
How i can get users for bamboo plan via rest api?
Asked by DARK_DIESEL:

How can i get users for bamboo plan via rest api? i need list of users that have permissions for plan.


Answers:
author: Bruno Rosa
body: hey Igor, there's no REST endpoint available to get plan permissions in Bamboo. However, you can do this from the database using the following SELECT query:

```
 select AE.TYPE,
        AE.SID USER_OR_GROUP_OR_ROLE,
        AE.MASK PERMISSION_LEVEL
   from BUILD B
   join ACL_OBJECT_IDENTITY AOI
     on AOI.OBJECT_ID_IDENTITY = B.BUILD_ID 
   join ACL_ENTRY AE
     on AE.ACL_OBJECT_IDENTITY = AOI.ID
  where B.BUILD_TYPE = 'CHAIN'
    and B.FULL_KEY = '<PLAN_KEY>';
```

*Please replace \<PLAN_KEY\> with the actual plan key.*

comments: author: Bruno Rosa
body: Let me give you an example. I have granted the following permissions to my plan:

* Plan admin to user **brosa**.
* View access to the **bamboo-users** group.
* View access to **logged in** users.
* View access to **anonymous** users.

This is how it looks like when I run that SQL statement:

*\| type \| user_or_group_or_role \| permission_level \|*

*\| PRINCIPAL \| brosa \| 2 \|*   
*\| PRINCIPAL \| brosa \| 1 \|*   
*\| PRINCIPAL \| brosa \| 16 \|*   
*\| PRINCIPAL \| brosa \| 128 \|*   
*\| PRINCIPAL \| brosa \| 64 \|*   
*\| GRANTED_AUTHORITY \| ROLE_USER \| 1 \|*   
*\| GRANTED_AUTHORITY \| ROLE_ANONYMOUS \| 1 \|*   
*\| GROUP_PRINCIPAL \| bamboo-users \| 1 \|*

Following the example above, we have the following **types**:

* PRINCIPAL (user)
* GROUP_PRINCIPAL (group)
* GRANTED_AUTHORITY (role)

The following **user_or_group_or_role**:

* username
* group name
* logged in users
* anonymous access

Finally, the following **permission_levels**:

* 1: View
* 2: Edit
* 64: Build
* 128: Clone
* 16: Admin


author: Bruno Rosa
body: By the way, what I mentioned above is for Bamboo \< 6.2 (e.g. 5.10, 5.13, 5.15, 6.1, etc). Multiple changes have been introduced to Bamboo 6.2 in terms of permissions (as seen here: <https://confluence.atlassian.com/bamboo/bamboo-6-2-release-notes-938641951.html>), including REST endpoints to query plan permissions.

For example, you can get a list of users that have been granted access to a specific plan using the following REST endpoint:

* http://localhost:8085/rest/api/latest/permissions/plan/\<PLAN_KEY\>/users

You can also use the following to get a list of groups with access to a particular plan:

* http://localhost:8085/rest/api/latest/permissions/plan/\<PLAN_KEY\>/groups

This is all available here: <https://docs.atlassian.com/bamboo/REST/6.2.1/#d2e337>


Tags: bamboo-development
Bamboo version upgrade stuck on database setup
Asked by Crishel Yumul:

It doesn't give an error on the log but still stuck me at setting external jdbc connection.

2017-05-04 11:23:44,900 INFO \[http-nio-8085-exec-9\] \[SelectSetupStepAction\] Current setup step is /setup/setupDatabase.action


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope these pages was useful for you

<https://confluence.atlassian.com/bamboo/bamboo-installation-guide-289276785.html>

<https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html>

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov


Tags: database

developer
Reuse job in different stages
Asked by Obaid Maroof:

I have a job (with a script task) defined in Stage A to deploy the artifacts to QA environment. The inline script which deploys the artifacts to the destination server is parameterized. Now in the next stage, I want to deploy the artifacts to my integration environment.

I was wondering if I could (re)use the same job in this new Stage to deploy the artifacts to the higher environments (integration in this case)?


Answers:
author: Przemek Bruski
body: In Bamboo 6, the feature called Bamboo Specs lets you define the plan in a textual format. You can then very easily reuse the job between stages.

comments: author: Obaid Maroof
body: Thanks Przemyslaw Bruski. Is it possible to export an existing job/stage/plan as a code?


author: tien tran
body: [@Obaid Maroof](/t5/user/viewprofilepage/user-id/1128595) It seems that have no option to export/import stages/job as code, let's say on Bamboo 6. However, there's the same function named View plan as Java specs. Just choose plan that need to export. Then look on option list from right-top action menu, we can choose the function to export entire plan configuration. Take a look inside and we'll see all configurations for stages and jobs.

Thanks


author: Jobin Kuruvilla [Adaptavist]
body: I am afraid you have to recreate the job in the other stage as well. There is no way to share the jobs or clone the jobs.

A best practice is to have a build job that generates the artifact and then have a deployment project with environments defined under it.

comments: author: Obaid Maroof
body: I appreciate your approach with having a deployment project with different environments defined. But then I was missing the functionality of having a fully automated pipeline which starts from triggering the build and end up in deploying it to the prod environment (obviously with some manual stages in between). As far as I know, deployment project is kind of an always manual step. Let me know if I am missing something obvious here.


author: Jobin Kuruvilla [Adaptavist]
body: You can adda trigger in the deployment environment. So, a full cycle is always possible. Check out [https://confluence.atlassian.com/bamboo/triggers-for-deployment-environments-342098622.html](https://confluence.atlassian.com/bamboo/triggers-for-deployment-environments-342098622.html?)


Tags: bamboo-administration
How to pass multiple variables to run a bamboo plan using REST api call?
Asked by Kamal:

I know how to call run a bamboo plan using a REST api call with one parameter/variable.

curl -s -X POST --user ${USER} 'http://bamboo:8080/rest/api/latest/queue/PROJ-PLANNAME?os_authType=basic?bamboo.variable.MY_PLAN_VARIABLE=300'

Can anyone please tell me how to do the same, if i have to pass multiple parameters to run a bamboo plan.

Example: curl -s -X POST --user ${USER} 'http://bamboo:8080/rest/api/latest/queue/PROJ-PLANNAME?os_authType=basic?bamboo.variable.MY_PLAN_VARIABLE=300,bamboo.variable.MY_PLAN_VARIABLE2=Test' ?


Answers:
author: Cristiano Mariano
body: Hi Kamal! How are you doing?

In order to pass more than one variable, you have to separate them using a \& signal.

Hope this helps!

Thanks,

Cristiano

comments: author: Qualys DevOps
body: I tried this but aint help


Tags: rest-api
Bamboo is not secure, getting a 403 forbidden
Asked by KeishaH:

I have installed Bamboo on an AWS EC2 instance, but when I open the instance page I get that its not secure, and when I try to load my repositories I get the 403 forbidden error and can't create a plan.

Are there any work arounds for this?


Answers:
author: Jeyanthan I
body: With the limited information you have provided, I believe you have installed Bamboo using the [Bamboo EC2 Wizard](https://confluence.atlassian.com/bamboo/running-bamboo-server-in-aws-858705568.html). If that is the case, the wizard installs an Apache reverse proxy in-front of Bamboo and you may have to configure proxy settings as mentioned [in this page](https://confluence.atlassian.com/bamkb/failed-to-load-data-from-bitbucket-403-forbidden-when-creating-a-bitbucket-cloud-repository-in-bamboo-869183268.html).

There's a bug report logged here that is specific to the EC2 wizard not configuring these settings initially: [BAM-18063](https://jira.atlassian.com/browse/BAM-18063?src=confmacro).

Also, check that your AWS security group is configured properly to allow access to the appropriate domain via the [AWS management console](https://console.aws.amazon.com/).
> when I try to load my repositories I get the 403 forbidden error and can't create a plan.

Maybe you don't have permission to clone the repository? Try to clone the repo manually from your EC2 server. Check for catalina.out and see if it hints you something. A screenshot of the error next time would help us to visualise the issue.


Tags: aws
Show User Id & User Name Together
Asked by taeseok park:

Dear All

I would like to show the user id and user name together.

(Jira, Confluence, Fisheye, Bamboo)

Is there a way?

Thanks.

Best Regards


Answers:
author: Jack Brickey
body: Hi [@taeseok park](/t5/user/viewprofilepage/user-id/822703) , can you convey exactly where you are wanting to do this? When you mention someone you'll will only see user name which can't be configured.


Tags: confluence

fisheye-crucible-administration

jira
Bamboo version upgrade results to license invalid
Asked by Crishel Yumul:

Hi,

I recently upgrade my bamboo version from 5.11 to 5.14. We are currently on the premium subscription, yet, the logs still redirects me to setupLicense. Did I missed something on the fly, i just copy paste the license string and the product key as well.

Urgent support here. Thank you!


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope you got support from <https://support.atlassian.com/contact>

BTW, are you on the latest version 6.8.0 or planning?

<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov
After recent Bamboo upgrade to 5.15.5 we are noticing automatic plan branch detection issues
Asked by ashleyg:

After a couple of days post our bamboo upgrade to 5.15.5 version, we are noticing few issues in bamboo. Branches added in Bitbucket are not automatically added in bamboo despite the auto plan branch enabled and manually adding them in bamboo is generating the following error:-

could not execute batch; SQL \[insert into VCS_BRANCH (NAME, DETECTED_DELETION_DATE, CHAIN_ID, VCS_BRANCH_ID) values (?, ?, ?, ?)\]; constraint \[BAMBOOP.SYS_C006420\]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute batch

This is occuring for most of the branches across most of the plans and never happened before. Apart from the upgrade nothing else has changed on Bitbucket or bamboo end.

We are also seeing similar errors at times when a plan build automatically gets triggered (due to triggers) or is run manually, wherein these are again the sql errors indicative of the fact that the db tables are not accepting the new results.

I wonder why the database is behaving so weird now, and does that mean we need a restart of the database or a restart of bamboo server.

Kindly advise as its blcoking our work to a great extent.

Any help here will be greatly appreciated.

Cheers,

Ashley


Answers:
author: ashleyg
body: Possibly due to some issue with the post upgrade re-indexing, the plan branches would update in the database but never show up in UI and hence casuing those error messages.


Tags: bamboo-administration

bitbucket

database
Bamboo server utilization
Asked by Gabriel Vincenzi:

Hi atlassian community,

I have a aws ec2 instance running bamboo ( c4.large ) and very often I got alerts regarding server CPU and RAM. I see that java process are taking most of the CPU. Is that normal ? We don't use it a lot, dev team does like 1 deployment per day.

Thank you very much if you could share some experiences with me.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

it base on the your jvm parameters and limits
how do I see what commands bamboo is running
Asked by red888:

I running an msbuild task: <https://confluence.atlassian.com/bamboo/msbuild-289277044.html#MSBuild-options>

I pass it args in the options filed but I want to see the raw command its actually running. How can I view this?


Answers:
author: Edwin Kyalangalilwa
body: You can view this under the logs tab of the build. For example:

![Screen Shot 2017-05-07 at 12.21.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/991iA25E17D17D560B78/image-size/large?v=v2&px=999 "Screen Shot 2017-05-07 at 12.21.32.png")


Tags: windows
Scheduled ticket did not assign automatically
Asked by Raymart Cruz:

I've created two automations: one schedules ticket creation, and the other assigns tickets to a specific group when they're created. However, when the scheduled ticket is created, it doesn't automatically assign to the designated group, nor does it appear in the audit log.

![Screenshot 2024-02-06 at 9.53.27?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304616i0CF92613D86529EF/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 9.53.27?PM.png")![Screenshot 2024-02-06 at 9.54.04?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304615iE034BC86DD758C81/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 9.54.04?PM.png")![Screenshot 2024-02-06 at 9.54.32?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304618iA80B9AB14009D6B2/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 9.54.32?PM.png")![Screenshot 2024-02-06 at 9.54.36?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304617i308991DDF8E2B994/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 9.54.36?PM.png")


Answers:
author: Lacy Saute
body: Hi Raymart, at the bottom of the rule details on the assigning automation, do you have the box checked for "Check to allow other rule actions to trigger this rule"? This should do the trick but it looks like you could possibly combine your rules unless there is a reason you are keeping them separate.

![Screenshot 2024-02-06 190821.png](https://community.atlassian.com/t5/image/serverpage/image-id/304774i106B547D41C7FEB3/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 190821.png")

comments: author: Raymart Cruz
body: It worked. Thanks Lacy


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
Hide statuses in Requests status drop-down
Asked by Manon Mackey:

Hi,

Can I hide all workflow statuses, except OPEN REQUESTS and CLOSED REQUESTS from this drop-down in the portal?

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/304645i804A594B8999EAAE/image-size/large?v=v2&px=999 "Capture.JPG")


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Manon Mackey](/t5/user/viewprofilepage/user-id/5327583)

No, you can't. The list will show all Status names that you are showing to the customer per Request Type configuration:

![Screenshot 2024-02-15 151020.png](https://community.atlassian.com/t5/image/serverpage/image-id/306644iD719267411DCD3AD/image-size/large?v=v2&px=999 "Screenshot 2024-02-15 151020.png")

You can rename statuses and sum up to show the customers less, but that will apply to the Request detail view as well as the Request overview and therefore the dropdown.

comments: author: Manon Mackey
body: Hi [@Rebekka Heilmann _viadee_](/t5/user/viewprofilepage/user-id/5182395),

Thanks for your reply. I did change the Workflow status in Jira to Open, In progress and Closed and it changed it in the request overview, but the dropdown still shows all statuses.


author: Rebekka Heilmann _viadee_
body: Where did you change what exactly to Open, In progress and Closed?


author: Manon Mackey
body: I changed it under Project settings \> Request types \> Workflow \> Workflow statuses (screen1). The dropdown still shows all possible statuses (screen2). It does show In progress on the main screen (3)

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/306665i739F9CB7CFFCFA22/image-size/large?v=v2&px=999 "Capture.JPG")

![Capture2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/306666i207FE36E979466A8/image-size/large?v=v2&px=999 "Capture2.JPG")![Capture3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/306667i93E6EBBD88D66AF5/image-size/large?v=v2&px=999 "Capture3.JPG")


author: Rebekka Heilmann _viadee_
body: Does the Customer have other Requests with a different Type or project? The Status name can be set per Request Type.

If not I'd have to create a test case on my instance to check myself.


author: Manon Mackey
body: No other request type or other project.


Tags: cloud

jira-service-management

jira-service-management-cloud
Hide a Status in a workflow based on a custom column value.
Asked by baiju mohan:

Hi ,

I have created a Change management workflow in Jira Service-Desk . The flow is as below

**Open -\> Dev Lead Approval -\> (Approve) -\> QE Approval \> (Approve) -\> UAT Approval -\> (Approve) -\> Resolved.**

I have created a custom column***"Agent"*** with multiple single select values. if this column value not**"agent1",** I need to update the workflow as below (skip the UAE approval status)

**Open -\> Dev Lead Approval -\> (Approve) -\> QE Approval -\> (Approve) -\> Resolved.**

I tried below option.

1. In the configuration of approve transition between Dev Lead Approval \& QE Approval, added a show/hide condition which checks the custom column value and evaluate true/false.

2. If false, the transaction will not shown.

I ran the workflow and I can see the transition condition ran successfully. But, still the workflow is moving to UAT Approval status after the QE Approval status approval. Is there anything I am missing here? please guide.


Answers:
author: Marc - Devoteam
body: Hi [@baiju mohan](/t5/user/viewprofilepage/user-id/5410962)

A workflow is set on a project, this flow can't be changed on field information.

Your approval transition from QE to UAT is based on the approval given. Then you would need to add a different approval transition from QE to Resolved.

comments: author: baiju mohan
body: Hi [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976)

Thanks for the reply. This means I need to create a new workflow without the UAT status? Is it possible to have two approval transitions in the workflow 1. QE to resolved 2. QE to UAT and activate only of them based on custom column value?


author: Marc - Devoteam
body: No, you can add another transition from QE to Resolved

You would need to have a validator or condition on the transitions that are is available.

You might require a marketplace app on this, as basic validators or conditions can't offer what you want.


Tags: jira-service-desk-server

jira-service-management

jira-service-management-server

workflow
Tabs not showing in issue view
Asked by Asher Francis:

Hi all

Tabs are not showing in my issue view - or even in the Request type associated with the issue type. All the fields on the tabs are showing in the main issue view.

I can confirm that:

- The "Edit" action in the screen scheme is pointing to the correct screen that has the tabs

- The context on all the custom fields is set to all projects

Even if I set up a request type associated to the issue, and click on "Issue view", it does not pick up the custom tabs. I don't see the tabs in this view in order to add the custom fields to it

Screenshots below:

![2024-02-06_11-38-58.png](https://community.atlassian.com/t5/image/serverpage/image-id/304581i3A0CBBB2B0683821/image-size/large?v=v2&px=999 "2024-02-06_11-38-58.png")

![2024-02-06_11-40-22.png](https://community.atlassian.com/t5/image/serverpage/image-id/304577iC39648A31A2EC192/image-size/large?v=v2&px=999 "2024-02-06_11-40-22.png")

![2024-02-06_11-41-03.png](https://community.atlassian.com/t5/image/serverpage/image-id/304580iEBB9B3462234B96E/image-size/large?v=v2&px=999 "2024-02-06_11-41-03.png")

![2024-02-06_11-42-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/304579i5EA910789AADE670/image-size/large?v=v2&px=999 "2024-02-06_11-42-05.png")

![2024-02-06_11-42-47.png](https://community.atlassian.com/t5/image/serverpage/image-id/304578iBF57F6BD32F5114A/image-size/large?v=v2&px=999 "2024-02-06_11-42-47.png")


Answers:
author: Marc - Devoteam
body: Hi [@Asher Francis](/t5/user/viewprofilepage/user-id/3853341)

Tabs are only used in issue view not in request view.

But tabs only become visible if any field(s) on the tab are containing information. If all field(s) on the tab are empty, they will not be visible.

Tabs are on screens, screens are in screen schemes, on the issue type screen scheme its defined which issue type is using what screen scheme.

comments: author: Asher Francis
body: Hi Marc,

Thanks, all of this is configured correctly. I have other issue types with almost exactly the same configuration that work fine - even when the field values are empty


author: Asher Francis
body: Note: the screens and request types were duplicated from existing screens and request types and modified slightly

comments: author: Chris Lee
body: I have a similar problem. Did you find a solution?


Tags: cloud

jira-service-management

jira-service-management-cloud
when i am raising request, all in my organisation is receiving mail
Asked by BKT Helpdesk:

when i am raising request, all in my organisation is receiving mail. I need to stop this as dont want any mail to flow.


Answers:
author: BKT Helpdesk
body: Thats very great of you. Thank you so much.


author: Nikola Perisic
body: Hello [@BKT Helpdesk](/t5/user/viewprofilepage/user-id/5276358)

In order to limit this:

1. Go to the Project Settings
2. Navigate to the Customer notifications
3. Toggle off the Request created notification and save the changes![Screenshot 2024-02-06 at 13.38.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/304597i52CB9CAAAE2448F9/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 13.38.14.png")


Tags: cloud

jira-service-management

jira-service-management-cloud