youngmon/atlassian-qna huggingface dataset:
bamboo spec in specific branch
Asked by Diego Prieto:

Good morning

I have a problem with Bamboo specs YAML.  
The existing documentation is quite poor and I'm trying to make a certain plan run only if there is a commit on a specific branch (for example development) because if the commit runs on another (master) I want to launch a different plan.

How can I do it?

Thank you very much.


Answers:
author: Steve Thornhill
body: Have you defined a separate section for that branch in the yaml file?

      branches:    staging:      - step:

comments: author: Diego Prieto
body: Hi Steve.

Thanks for your reply.

I dont know how to do it. Could you provide me a little bit example?

Thanks a lot


author: Steve Thornhill
body: Something along the lines of this will get you started

```
pipelines:
  default:
    -step:
      name: Default stuff for non named branches
      script:
        - npm install
        - npm test
branches:
  branch1:
    -step:
      name: Run on Branch 1
      script:
        - echo "Running this on Branch 1"
        - npm install
        - npm test
  branch2:
    -step:
      name: Run on Branch 2
      script:
        - echo "Running this on Branch 2"
        - npm install
        - npm test
```


author: Ibrahiem Mohammad
body: Hi Steve, do you know how the above would look like in Java Specs? I am trying to find an example or the right commands with the Specs API but nothing yet.


Tags: branch

yaml
BambooSpec create plan failed due to duplicate plankey after plan is deleted?
Asked by Martin Xue:

Hi,

When I delete a build plan and straight after that, I use bamboospec java class to create the plan again with the same plankey, it failed with duplicate key error.

After I wait for a few mins, it works.

Is there a way to forcefully delete a plan from bamboo so that I can create the plan again straightaway?

Thanks

Regards

Martin


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope problem was related to flush the cache.

I hope one the latest version 6.8.0 will be better

[https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html](https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html?)

Cheers,

Gonchik Tsymzhitov


Tags: spec
Bamboo project job setup
Asked by Doug Hill:

Just installed Bamboo on a server and Bitbucket on another server. In English this is what I would like Bamboo to do, please tell me if my expectations are wrong:

1. Get latest source from Bitbucket.
2. Use Visual Studio to build the solution.
3. Use Visual Studio to publish the solution to deployment folder.
4. Backup the folders on the target server.
5. Copy the published solution to target server.

In some situations there is a steps

4.5) Stop IIS

6. ReStart IIS

I've seen a couple examples but have yet to figure out how to accomplish any of these tasks. Thanks

Follow up, I was able to get BB to compile with Visual studio but still do not know how to get BB to do the rest of the steps.


Answers:
author: Foong
body: How about using SSH task to backup the file and SCP task to copy over the file?


Tags: bamboo-development
Bamboo - continuous deployment with Angular CLI
Asked by Jakub Piekarczyk:

I've set up a deployment project for an Angular app, copying its files to a remote server (with SCP task) and building it with \`ng serve\` (with command over SSH task). Now, even though this works, and the app is successfully deployed, there are problems with this.

FIrst, the deployments are kept running for a long time, because the \`ng serve\` command doesn't provide a return code until it's canceled manually. Second, those deployments are always marked as failed, even though the app works - but that makes sense, because third, after executing those commands, there is no control over the deployment. If there's an error, I have to manually go to the server and kill the process, before trying again.

I have searched for solutions, but couldn't find any. Is there a better way of doing this?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, checkout

<https://community.atlassian.com/t5/Bamboo-questions/How-to-Build-angular-cli-project-in-bamboo/qaq-p/598788>

<https://community.atlassian.com/t5/Bitbucket-discussions/Angular-6-CLI-Deploy-Pipeline/m-p/883511#M973>

Cheers,

Gonchik Tsymzhitov


Tags: angular
Communications link failure from Bamboo to mysql server
Asked by Rohit:

Hey,

We have configured Munit task on Bamboo build plan and running maven test

**mvn clean test**

Getting connection issue when i run above command. How to resolve this ?

When I do it from command prompt in my local it works fine.

![bamboo_issue.JPG](/t5/image/serverpage/image-id/33987iE0C3563CA837296F/image-size/large?v=v2&px=999 "bamboo_issue.JPG")


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope was related to that connectivity between remote agent and mysql server

Cheers,

Gonchik Tsymzhitov


Tags: continuous-delivery
Add button in dedicate agent tab is not working after bamboo update.
Asked by Yadav yadu:

After updating the bamboo to the latest version, I am not able to dedicate remote agent for any build. The Add button in the Dedicate agent is not working. Not able to find anything in the logs as well. On clicking the ADD button, it is not responding anything.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

is it reproducible on the the latest version 6.8.0 ?<https://confluence.atlassian.com/bamboo/bamboo-releases-671089224.html>

Cheers,

Gonchik Tsymzhitov

comments: author: Allan Margono
body: I have the same issue when upgraded to ver 6.10.4.

Any idea what went wrong?

Thanks

Allan
How to stop ongoing build when a new one is scheduled
Asked by maclun:

In our setup, we are able to run only single build at the time (due to the deployment setup). I have set a max concurrent builds param to 1.

We happen to have multiple PRs merged around the same time, hence there may be new changes coming, while the build is ongoing. Then we have to wait until current build finishes and the next one starts (polling for changes).

I am missing/looking for a way to stop ongoing builds if the new one is scheduled. Is there a way to do that?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I hope the latest version 6.8.0 will cover your request

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

Where includes hung build killer as built-in :)

Cheers,

Gonchik Tsymzhitov

comments: author: maclun
body: I am not sure I understand how that would solve it.

I meant, that if there are coming changes during ongoing build, I would like the current build to stop, and new one to be triggered.


author: serefbulbul
body: Hey [@maclun](/t5/user/viewprofilepage/user-id/979375) , did you find any way to do what you want? That is also what I am looking for.

If there are multiple pushes to branch, they all create separated builds on the queue. However, we only care about the last build with the latest changes.


author: maclun
body: [@serefbulbul](/t5/user/viewprofilepage/user-id/2416902) Unfortunately not.


Tags: build
How can I set up deploy triggers via the Bamboo API?
Asked by Luke Simons:

I'm creating a plan branch via this API: <https://community.atlassian.com/t5/Answers-Developer-Questions/Bamboo-REST-API-to-create-branches/qaq-p/477013>

I'd like to use the API to add a trigger for one of my stages for builds from this plan branch - so that I can set up my full plan programmatically.

Googling shows me lots of people who are trying to trigger the plan via API - I would like to just add a trigger.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Feel free provide PR for this small project

<https://github.com/atlassian-api/atlassian-python-api>

Cheers,

Gonchik Tsymzhitov
Jira API to fetch Reporter's Department
Asked by marianna.taborda:

Hello team!  

i'm using a Jira automation to try and get the reporter's department in the company. This profile piece is added when they are granted a license to Atlassian - when joining the company.

What I'm trying to get is a label in the ticket, or an update of the ticket organisations, or sth, so that I can then have other automations actioning the auto-rejection of these tickets.

This is how I set up the automation:

![Screenshot 2024-04-16 at 20.21.42.png](/t5/image/serverpage/image-id/318710i123E002288098B8A/image-size/large?v=v2&px=999 "Screenshot 2024-04-16 at 20.21.42.png")![Screenshot 2024-04-16 at 20.22.29.png](/t5/image/serverpage/image-id/318709i467E2AAA315D02CB/image-size/large?v=v2&px=999 "Screenshot 2024-04-16 at 20.22.29.png")

But this threw an error:

> Error publishing web request. Response HTTP status:  
>
404  
Error response HTTP body:  
> {"message":"null for uri: <https://xxxxxxxx.atlassian.net/rest/servicedeskapi/department?accountId=5dc03d0b9833ce0dfd8xxxx>","status-code":404}  
>
Any idea how to troubleshoot this or how to get the reporter's team using API? ( I have tried a custom field and have the reporters use this field to give us their team, but the "bad-department" would simply pick a different team and call it a day. The issue is the team has such a high turnover that most training efforts prove unfruitful as the agents just keep on leaving the company or changing depts...)

Any input is highly appreciated here. Thank you!


Answers:
author: Joseph Chung Yin
body: [@marianna.taborda](/t5/user/viewprofilepage/user-id/5136733) -

Please provide more details on how user's account entity attribute "Department" are populated?

Even though, I am not an expert with REST APIs, since user's account entity is considered as properties - I am sure that you are already knowing the following reference link - <https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-properties/#api-group-user-properties>

Lastly, here is the link on using SmartValue against User object in automation - <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/>

Hope this helps and sorry i don't have any recommendation at this time. Please advise.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: api

automation

cloud

get-api

jira-service-management

jira-service-management-cloud
jsd-awssc-app.services.atlassian.com?s server IP address could not be found.
Asked by Ronald Pirela:

When a user enters our space to generate a ticket on our Service Desk platform, the following error message appears on the form

<br />

**jsd-awssc-app.services.atlassian.com's server IP address could not be found.**

I was observing and it is in a specific form, I checked in another form and this error does not appear

![Imagen 16-4-24 a las 2.40?p.?m..jpeg](/t5/image/serverpage/image-id/318691iAE0DA27F39628D5B/image-size/large?v=v2&px=999 "Imagen 16-4-24 a las 2.40?p.?m..jpeg")


Answers:
author: Dave Rosenlund _Trundl_
body: Welcome to the community, [@Ronald Pirela](/t5/user/viewprofilepage/user-id/5395050) ?

I *think* someone entered the wrong URL into your JSM configuration, somewhere.

The url should probably end with ".net" (not ".com").

Hope this helps,

-dave

comments: author: Ronald Pirela
body: Ok Dave, thank you very much for your response, I will review it and contact you for any additional support.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to get linked issues and Update
Asked by AI:

I am trying to get all Linked issues In JSM and need to update specific text custom filed In Issue screen for specific Linked issue,Through Postman.

API Get Call : <https://test-sandbox.atlassian.net/rest/api/2/issue/issue_key?fields=issue> link

How to get Bulk specific Linked issues and update only those issues.

Do we have any JQL Queary and JSON


Answers:
author: Michel Neeser
body: Hi [@AI](/t5/user/viewprofilepage/user-id/5300085)

Issue links are returned by the "Get issue" endpoint described [here](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get). In the response you get from this endpoint, you will find the JSON path "fields \> issuelinks" which provides you with all the issues an issue is linked to.

Hope this helps!

comments: author: AI
body: ![Screenshot 2024-04-16.png](https://community.atlassian.com/t5/image/serverpage/image-id/318722iA2C80EEC906778D8/image-size/large?v=v2&px=999 "Screenshot 2024-04-16.png")I tried what you advised and got the error below.


author: Michel Neeser
body: [@AI](/t5/user/viewprofilepage/user-id/5300085) In order to get the issue links of an issue, you need to use the following endpoint instead of the one you tried (the one in your screenshot does not exist):

```
/rest/api/3/issue/{issueIdOrKey}
```

Please also refer to the [documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get).


Tags: cloud

jira-service-management

jira-service-management-cloud
JQL Query for Affects Version
Asked by Malisha Thapa:

Hello Team,

I am trying to filter out all the issues that are related to a specific version.

For example: I have project ABC and Affects versions 4.1 to 4.10. I would like to filter the issue that has been created for the above versions, nothing more or less.

I tried the query as **project = ABC and affectedVersion \>= 2.1 AND affectedVersion \<=2.1.027**

This shows results for 3.1 affects versions as well.

Could anyone help me with this request.

Thank you,

Malisha


Answers:
author: Kalyan Sattaluri
body: Hello [@Malisha Thapa](/t5/user/viewprofilepage/user-id/5184719)

Instead try wilcard search:

project = ABCD and affectedVersion \~ "4.1\*"


author: Florian Bonniec
body: Hi [@Malisha Thapa](/t5/user/viewprofilepage/user-id/5184719)

The logic used behind \> \< when using them on version field is not the name of the version but the order they are in the Version config page.
> *The comparison operators (e.g. "\>") use the version order that has been set up by your project administrator, not a numeric or alphabetic order.*

[Advanced searching - fields reference \| Jira Software Data Center 9.15 \| Atlassian Documentation](https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-fields-reference-939938743.html)

In you case you have to re-order the versions or list them all using in (...,...,...)

Regards

comments: author: Malisha Thapa
body: Thank you for your response.

I need this issues to be filtered for 1 Project and I have like multiple projects.

Regards,

Malisha


author: Florian Bonniec
body: You have to add filter by project AND project = "Your Project"


author: Laurie Sciutti
body: Hi [@Malisha Thapa](/t5/user/viewprofilepage/user-id/5184719) \~ assuming your versions are sequential, the following would be the easiest and quickest:

```
project = ABC and affectedVersion in (4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 4.10)
```

comments: author: Malisha Thapa
body: Thank you for your response.

Yes, you are correct it is in sequential. As per your suggestion let's say we have affected version starting 4.1.1 4.1.2, 4.1.3 till 4.1.030, then I have to enter the entire version in the query manually to get all the issue belongs to above versions, but adding query like "**project = ABC and affectedVersion \>= 4.1 AND affectedVersion \<=4.1.030" .**

This wouldn't help is that right understanding.

The query does help to filter the issues which has 4.1 affected versions, but also 4.2, 4.3 as a results.


Tags: data-center

jira-service-management

jira-service-management-data-center
How to select Collaborator section in People option in Configuration project
Asked by Juan Jos? Balc?zar Fern?ndez:

Hello everyone. How can I select Collaborator section in JSM? I don't see that section in People option.

I would like to add a collaborator in my JSM but there isn't that section "Collaborator" in Configuration project\>People option in my JSM as it's said in documentation I've read......

How can I do it?

Thanks


Answers:
author: Walter Buggenhout
body: Hi [@Juan Jos? Balc?zar Fern?ndez](/t5/user/viewprofilepage/user-id/5477315) and welcome to the Community!

A *collaborator* in JSM is a member of the Service Desk Team role that does not have an agent license.

As long as you have users with a valid license to another Jira product (e.g. Jira Software), they will get limited permissions to your JSM project if you add them to the same role. The difference with agents is made by the JSM license agents have, which allows them to edit issues, share public comments with customers, transition issues, log time against issues and manage assets.

Hope this helps!

comments: author: Juan Jos? Balc?zar Fern?ndez
body: Thanks a lot for your answer!!!


Tags: cloud

jira-service-management

jira-service-management-cloud
How can i "Unsuspend" an account
Asked by Paul Towner:

I gave an external user the wrong permissions and then suspended their account for accessing our site.

Now when I add them as Service Desk Agents, they aren't added.


Answers:
author: Dexter de Vera
body: Hi [@Paul Towner](/t5/user/viewprofilepage/user-id/5408500) ,

Only org admins can restore user access. You can ff this step.

Navigate to admin.atlassian.com and select the organization

Under Directory \> Users, search for the user that you are trying to restore. ( Make sure all filters are unselected, there could be chances that the filter is set to show only active users and because of that you might not be able to search for the affected user)

Click on Restore access. The user account will be restored successfully.


Tags: cloud

jira-service-management

jira-service-management-cloud
JSM Multiple Board
Asked by Kranthi Kumar:

Hello   

Currently, I am working within JSM product and I can't create Multiple Boards in the project.  

I display only one default board.   

Any Suggestions?  

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

<br />

<br />


Answers:
author: John Funk
body: Hi Kranthi,

Here is an article that will guide you in how to create additional boards:

<https://community.atlassian.com/t5/Agile-articles/Creating-a-Second-Agile-Board-for-Team-Managed-or-JIra-Work/ba-p/2115018>


author: Valeriia_Havrylenko_SaaSJet
body: #### Hi [@Kranthi Kumar](/t5/user/viewprofilepage/user-id/5029257) , {#toc-hId-321780511}

One organization can have multiple instances of JSM, but only if you set up multiple sites in your organization. An Atlassian site has its own URL and under that same URL, only 1 instance of the same product can be uses. By adding sites (or URLs) you can indeed accomplish what you describe.

It may be a good idea to read up on the topic in these support articles:

* [What is an Atlassian organization](https://support.atlassian.com/organization-administration/docs/what-is-an-atlassian-organization/)
* [Benefits of multiple instances](https://support.atlassian.com/organization-administration/docs/how-many-instances-of-a-product-does-my-organization-need/)

comments: author: Valeriia_Havrylenko_SaaSJet
body: [@Kranthi Kumar](/t5/user/viewprofilepage/user-id/5029257) Please accept my answer if you find it useful

Thanks!


author: Kranthi Kumar
body: Thanks for quick response ?


author: Walter Buggenhout
body: Hi [@Kranthi Kumar](/t5/user/viewprofilepage/user-id/5029257),

You are correct. In JSM there is only 1 board for a project. If you want to set up multiple boards for a project or a single board to pull in issues across multiple projects, you would need to start from a Jira Software company managed project.

Hope this helps!

comments: author: Kranthi Kumar
body: Hi   

Thanks for quick support  

Is there any Add-on/Plug-in that can support multiple boards??  

<br />

<br />

<br />


Tags: cloud

jira-service-management

jira-service-management-cloud
how to split and capture the specif text from Email body to Custom field using Jira automation
Asked by Kishor Mudhili:

Hello Friends,

how to split and capture the specif text from Email (Descrption to Custom field using Jira automation

example:

Weekly check completed with faults:

**Room** : STA Meeting Room  
**Location:** Stallingborough

from the above Email (Description) i want to capture Room Information and should be updated in Jira Custom Field (Room), using Jira Autoamtion rules. please help me


Answers:
author: Kalyan Sattaluri
body: Hello [@Kishor Mudhili](/t5/user/viewprofilepage/user-id/5310742)

Please review below recent thread's solution on similar requirement..

<https://community.atlassian.com/t5/Jira-Software-questions/I-m-trying-to-automatically-close-tickets-that-have-two-matching/qaq-p/2664867>

Thanks!

comments: author: Kishor Mudhili
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) : i tried it but not working. i hop you can able to reproduce my problem.


Tags: cloud

jira-service-management

jira-service-management-cloud
Permissions not working - Dashboard
Asked by David Willoughby:

All,

I know this has been asked a hundred times (I've read all the posts) however my dashboard will not share. By that I mean I have added my entire org as editors and as viewers. All filters are set to My Org, and when anyone accesses it they get 'Dashboard is blank or you dont have permission to view' The only thing I can think of is that the dashboards are sharing created reports in the project, but reports don't have permissions, and more so my reports are using the report filters not the saved filters that are already shared anyway.

I've cut back some of the permissions and changes to more real life levels but still no one can access.

Project Permissions (group specific IT-Support Ops TeamLeads)

![Screenshot 2024-04-16 092635.png](/t5/image/serverpage/image-id/318650i3F34D5768DF7FDD1/image-size/large?v=v2&px=999 "Screenshot 2024-04-16 092635.png")

![filterpermis.png](/t5/image/serverpage/image-id/318653iAFC161AA1880555B/image-size/large?v=v2&px=999 "filterpermis.png")![dashboard.png](/t5/image/serverpage/image-id/318654i398EFE427B86AEC5/image-size/large?v=v2&px=999 "dashboard.png")


Answers:
author: Dexter de Vera
body: Hi [@David Willoughby](/t5/user/viewprofilepage/user-id/5361242) ,

To make you dashboard visible is the user is added in group/role indicated in your project permission , filter and dashboard? Also do you have any security scheme in your project?

comments: author: David Willoughby
body: I removed the Security Scheme. As for the group/role for testing purposes, I used a test account and gave it progressively more roles, only project admin worked. I am using the report view widget in the dashboard but reports don't have permissions, and all the filters that the reports use are set to 'All Org'


author: Dexter de Vera
body: You said User is in group added in browse permission in all the project included in your filter. And your filter use im dashboard is set org as viewers. How about the dashboard? Have you already set the viewiers? You need to set the viewers for both dashboard and filter. Can you show us some screenshot for this 3 (project permission, filter viewer and dashboard viewer).

you can share the dashboard by clicking (...) -\> rename or share

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

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

If still does not work, you may raise a support ticket to Atlassian. - <https://support.atlassian.com/contact/#/>


author: David Willoughby
body: Yes I have, however I think it is working now. I added group permissions for the project Browse all project to include servicedesk-users and that resolved it. I think it was a mix of permissions being mixed on my end.


author: Dexter de Vera
body: great! thanks.


Tags: cloud

jira-service-management

jira-service-management-cloud