youngmon/atlassian-qna huggingface dataset:
Catch-22 with bamboo java specs, gitflow and branch updater
Asked by Matthias Kannenberg:

I'm running in a catch-22 when trying to create a gitflow-kind-of project with java specs.

I want to create a build plan through java specs with the following properties:

Main branch for build plan: master (must be master as the main branch can not use the branch updater)

Custom Plan branch: 'develop' using the branch updater to auto merge from master

Automatically created plan branches: use branch updater to auto merge from develop

The Problem:

- Bamboo requires plan branches, not git branches for the branch updater

- The branch updater config needs to point to the 'develop' plan branch for correct merging

- I can not create the develop plan branch through java specs

- I can not change the branch updater source branch when the build plan is under control of the java specs

I tried to work around this by using the plankey and adding a "0" to reference the first plan branch (as plan branch keys are the plan keys + an iterator) but this results in a catch-22 where the java specs can not create the build plan because the plan branch is missing and I can not create the plan branch because the build plan is missing. Funny enough, this works for existing projects where the first plan branch was created.

Is there any way to get this working?


Answers:
author: Matthias Kannenberg
body: I found a really strange workaround:

If I create a project manually with the same name and key as the java specs would create, manually create the develop plan branch and then run the java specs again, the existing projects gets taken over by the java specs and gets properly configured..


Tags: bamboo-administration
SSH task not exiting cleanly
Asked by Tom Wimsatt:

My SSH tasks are leaving open SSH sessions behind rather than exiting and closing out the sessions. I added 'exit' at the end of each command and it still leaves the sessions behind. Is there something else I need to do or configure?


Answers:
author: somethingblue
body: Hi Tom,

* If you run this task in an SSH script from the command line does it work?
* Are you seeing any errors reported which should cause the script to exit?

I'd be interested to see if the workaround the user listed in [BAM-16368](https://jira.atlassian.com/browse/BAM-16368) would work for you and if this is similar behavior. Try the suggestion by Davin and let us know.

Cheers,

Branden


Tags: ssh
Ensure that bamboo shows failure when using CURL to call an external API?
Asked by Daniel DiVita:

We are using a CURL script in bamboo to call and external API.If the API comes back with, say, a HTTP 400 (Bad Request) status message, how can Bamboo interpret that as a failure? Currently, the plan passes because bamboo was able to run the script. We also added the "-v" option to enable verbose messaging. The response also contains the word "error"


Answers:
author: Charlie Misonne
body: Hi Daniel

A Bamboo build will fail when the **last** exit code of your script ends with a value greater than 0.

By default a curl command will end with 0, even when you get an HTTP repsonse code other than 200.

The easiest solution is to use the **--fail** flag in your curl command. It will exit with error code 22.

Check the [curl manual](https://curl.haxx.se/docs/manpage.html) for more info.

Example:

```
curl --fail https://community.atlassian.com/thisdoesnotexist
echo $? #this outputs the exit code of the previous command. 22 in this case
```

note: do not include that echo command in your script as it's own exit code will be 0.

An alterative is to extract the http response code from your curl response and check whether it's 200 or something else but that requires some extra Linux commands.

In case your curl command is not the last one in your script task you should either save the exit code in a variable and or use **set -e** at the top of your script.
Bamboo Test Error log does not line warp stacktrace
Asked by Lei P:

Hi,

We noticed that Bamboo Error log does not line warp. Is there way to work-around this?

Whole stacktrace will be printed into one super long line.

![2018-03-01_1156.png](/t5/image/serverpage/image-id/16152i752127D5BFEF68E0/image-size/large?v=v2&px=999 "2018-03-01_1156.png")


Answers:
author: AnnWorley
body: Hi there, Lei,

I want to just circle back on this question for the sake of posterity. I understand from your support request that you discovered an issue with your raw log generator, so there was nothing to be done on the Bamboo side.

If there are any details you would like to share with the Community, I hope you will update this thread.

In any case, thanks for contributing your question to our forum.

Cheers,

Ann

comments: author: Lei P
body: Thanks, Ann.

Sorry for getting back to this thread late.

Yes, this issue is a bug with the unit test reporter. Nothing to do with Bamboo.
Bamboo deletes a plan branch even if the branch exists in the remote
Asked by KB:

We have a Bamboo plan which is configured to create Create plan branches for the new branches that are created on the remote GTI (Stash in this case)

The plan is also configured to delete plan branches after 3 days when the remote plan is deleted.

We have been having issues lately when bamboo deletes the plan branch with the following log output:

```

./catalina.out:111755168:2018-03-01 03:00:00,052 INFO [scheduler_Worker-7] [BranchExpiryJob] Deleting Plan Branch 'Fusion - Fusion FW SC1500 CI - release-MSM_r18_1_candidate' of Plan 'Fusion - Fusion FW SC1500 CI' since the VCS branch was deleted 3 days ago
```

But the VCS branch is still existing on the remote and is being committed almost every day. Strangely enough, even if the branch is created manually it gets deleted when the clean daemon is executed.   

Is this a bug? Or am I forgetting something here? We are running Bamboo version 5.13.2 build 51316.


Answers:
author: Christian Glockner
body: Hi Kishore,

Is this a branch that used to exist, was then deleted, and then re-created?

If that's the situation then this is a known bug in Bamboo, see <https://jira.atlassian.com/browse/BAM-16341>.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: KB
body: Hi Christian,

Thanks for replying back.

No the branch existed since its inception, we never deleted it.

Warm Regards,

Kishore


Tags: bitbucket
error upgrade 6.2.2 to bamboo 6.4.0
Asked by Daniele Milan:

hi, i try to install for testing bamboo and i have a problem whit mariadb at last version of bamboo 6.4.0 and i cant start the service because bamboo check the version of mysql 5.5 but i have install mariadb 10.2.  

you can say me where i can configure the proprierties "unsupported.database" for complete the upgrade?  

thanks


Answers:
author: Christian Glockner
body: Hi Daniele,

Bamboo does not support MariaDB, so you will need to use MySQL or any of the other supported databases, see <https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html>.

Cheers,

Christian Glockner

Premier Support Engineer

Atlassian

comments: author: Daniele Milan
body: ok thank, i have install mysql 5.6 on all attlassian server, i dont know why dont support mariadb 10.1 but if the prerequisite is that i have install mysql.
Bamboo - Won't get the correct version of my submodule
Asked by Sally S_ Miller:

I have git 1.9.4, bamboo 6.1.1, and bitbucket 4.14.9 running on Linux boxes not connected to the internet

We have 2 Repositories one is the main_project and the other is a submodule that is used by the main_project. The log shows it successfully checking out the correct submodule SHA# and when I go to the test space it has the correct SHA# for the submodule. But when I do a git status it shows that there are commits missing from the submodule (needing a git submodule update)

It use to work but there was a change in the submodule and now my tests are failing

When I enabled submodules it tried to get the submodule but it failed authentication


Answers:
author: Sally S_ Miller
body: <https://stackoverflow.com/questions/47041959/storing-ssh-key-for-bamboo-deployments>

said to use 6.3 but I'm stuck at 6.1.1

and I can't save SSH keys because my bamboo is root and I don't have that kind of permissions
User defined global and plan variables are not replaced in maven task goal.
Asked by John Gill:

This article suggests that Bamboo global and build specific variables can be referred to in build scripts or maven.

<https://confluence.atlassian.com/bamboo/passing-bamboo-variables-to-a-build-script-289277351.html>

While the example works, it appears that if I define my own bamboo variable either globally or at the plan level, they are not replaced.

I suspect that "built in" variables are substituted, but user defined global or plan variables are not.

If in my maven task, I set the goal to

clean test -Dvms.database.user=${vms.db.user} -Dvms.database.password=${bamboo.buildNumber}

Then I can clearly see that the built in bamboo.buildNumber is replaced, where as my global variable vms.db.user is not (as shown below).

<br />

clean test -Dvms.database.user=${vms.db.user} -Dvms.database.password=1


Answers:
author: Jeremy Owen
body: Hey John,

You can certainly Bamboo plan and Global variables in-line in a Script task or in your Maven goal. It just needs the bamboo prefix.

If your plan / global variable is *vms.db.user* you can reference in a Script task with this syntax: *${bamboo.vms.db.user}*

Hope this helps. :)

comments: author: John Gill
body: \<facepalm\> why didn't I think of that.


author: John Gill
body: Thanks Jeremy. Rookie mistake. It most certainly works.


author: Jeremy Owen
body: Awesome. Glad to hear it.
Newly installed virtual server
Asked by mtrummer:

Hello

I have installed bamboo on a new virtual machine, which is supposed to supersede the bamboo server i have set up last week.

I am guessing the server id has changed, can I use the same license (the one I have generated for the older server's id) for the new server or do I need to generate a new one?

Best regards,

Daniel


Answers:
author: Jeremy Owen
body: You can absolutely use the same license for the new server. Don't worry about the Server ID, there's no hard constraint linking them.

Hope this helps. :)

comments: author: mtrummer
body: Thanks for your quick reply Jeremy!
Is it possible to access windows network drive from Bamboo linux server via any task(script).
Asked by Sudeshna Mohanty:

I tried out this script

$ curl -v --user \<shared folder username\>:\<shared folder username\> \<shared folderpath\\File to be moved \> -X PUT curl -u\<artifactoryusername:\<artifactorypassword\> -T \<Artifactory path where file to be copied\>

But got data not shown.

I have not configured any remote agent for this.

When tried to ping to windows server from Bamboo I am able to reach the network.

What type of task I can configure . What other pre requiistes are required like (Configuring any agent).


Answers:
author: robhit
body: Hi Sudesha,

Thanks for your question!

Can we try to put this code in a separate shell file and then use Bamboo Script task (Script location as File) to see if that works. Ideally, if you can execute it using the terminal then it should work with bamboo as well.

Thanks,

Robhit


Tags: script
nable custom fields
Asked by Mursel Beqa:

How do we enable custom fields in the Customer portal viewing request?  

![image.png](/t5/image/serverpage/image-id/311610iD65319528E9210F0/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Mikael Sandberg
body: The request list cannot be configured, basically it is wysiwyg (what you see is what you get). You would have to look at using something like [Refined for JSM](https://marketplace.atlassian.com/apps/1218481/refined-for-jira-service-management-cloud?hosting=cloud&tab=overview) or one of the reporting tools that allows you to add them to the portal in order to control the request list.


Tags: cloud

jira-service-management

jira-service-management-cloud
Gauge chart using a Custom chart for reports?
Asked by Lars:

Hi all,

Is there a way to create a "gauge chart (or something similar)" without paying for an extra add-in/add-on in jira?

I've been creating a dashboard that we share with our customers to report back if we meet the SLAs and other cool stuff.

I want to visualize if they exceeded their "hours" of support. So, I'd like to create a custom chart that states that they've used a specific % or amount of their "support hours".

FYI, we track our times using the "Time Estimate (hr)" field in a ticket.


Answers:
author: Danut M _StonikByte_
body: Hi [@Lars](/t5/user/viewprofilepage/user-id/5319613),

Per my knowledge there are no native Jira gadgets like this.

But it might be worth investing in an add-on that will make your reporting job much more efficient and effective.

See this article as an example: <https://community.atlassian.com/t5/App-Central/An-effective-dashboard-for-Service-Desk-and-Customer-Support/ba-p/2360369>

As you will see in the article, with gadgets like **Advanced Issue Filter Formula** you can calculate percentages and numbers based on "support hours", while gadgets like **Control Chart** , **Histogram** or **Cycle Time Trend** will help you track your team SLA.

These are all gadgets offered by our [Great Gadgets](https://marketplace.atlassian.com/search?query=great%20gadgtes%20agile%20stonikbyte) app. I would be willing to assist you with any questions you might have.

I hope this helps.

Danut.


Tags: cloud

jira-service-management

jira-service-management-cloud

report

time-report
Seeking Information on Asset Discovery Agents for Mac and Linux in Jira Service Management
Asked by Claudio Bastos:

Hello everyone, this is my first post here.

We are evaluating Jira Service Management (JSM) for asset management to replace our existing solution.

Please correct me if I'm wrong, but as I understand it, JSM provides an asset discovery service to detect devices on the network. There is also a Windows agent that reports the device on which the agent is running to the asset discovery service.

My question concerns Mac and Linux agents. Is there an equivalent agent that runs on these platforms? If not, is there a workaround? I'm wondering if JSM provides an API to report a new asset or something similar.

Thank you in advance!


Answers:
author: J?rg Riebschl?ger
body: Hi Claudio,

maybe this link could be helpful for you:

<https://confluence.atlassian.com/assetapps/using-discovery-on-a-linux-system-1168847940.html>

Cheers,

Joerg


Tags: asset-management

assets

assets-discovery

cloud

jira-service-management

jira-service-management-cloud
Why dont move data residency
Asked by Supervisor Sistemas:

![Captura de pantalla 2024-03-12 a la(s) 10.52.07.png](/t5/image/serverpage/image-id/311573i9B8542161DEEEDCF/image-size/large?v=v2&px=999 "Captura de pantalla 2024-03-12 a la(s) 10.52.07.png")

I dont know why cant change data residency


Answers:
author: Kai Becker
body: Hi [@Supervisor Sistemas](/t5/user/viewprofilepage/user-id/5450756)

welcome to the community and thanks for your question. As you said, you are on a free plan of Jira. Data residency is available for Standard, Premium, and Enterprise cloud subscriptions only. <https://www.atlassian.com/software/data-residency>

So this is likely the cause why you can not change.

comments: author: Supervisor Sistemas
body: ![Captura de pantalla 2024-03-12 a la(s) 11.01.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/311580i2DCB633E68DEB593/image-size/large?v=v2&px=999 "Captura de pantalla 2024-03-12 a la(s) 11.01.34.png")

So, i cant use chat in teams for this?


author: Kai Becker
body: Sorry, I don't understand your question.  
Data residency for chat is not ready anyway, so this can not be set to a specific location at the moment.

Nevertheless as mentioned in my first comment, you won't be able to switch anyways as you are on a free plan.

But you should be able to connect JSM to your preferred chat application.


author: Supervisor Sistemas
body: ok, thank you


Tags: cloud

jira-service-management

jira-service-management-cloud
Translation in Language Support - is it safe to change language?
Asked by Glenn Castillo:

I want to translate my Service Desk from Swedish to English and then disable the Swedish language.

I am talking about adding a language, setting it as default, and then disabling the current language. Setting located in the project:

*Project settings \> Language support*

* Will doing this break any automation and/or queues (JQL filters)?
* Do I need to translate automation rules that look for "Request type" titles or are these translated when I swap my default language?  

* What about queues and/or JQL filters?


Answers:
author: Glenn Castillo
body: The answer was Yes to all. I needed to make translations or manual edits across everything I asked in the OP.


Tags: cloud

jira-service-management

jira-service-management-cloud

language-support

translate
[Copy PDF, EXCEL attachments] How can i copy PDF or Excel attachments JSM portal from s/w project.
Asked by Rajesh Konda:

Hi All,

We are copying attachments between the software and JSM projects.

The attachments are copying successfully between the projects. Agents are able to view the attachments from agent view(with in ticket) but when customer try to access same attachment from portal nothing is shown.

The customers able to access all comments and screenshot of tickets but they are unable to access the PDF's \& Excel sheets in portal. can any one help in fixing this issue. Thank in advance.

Automation:

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

Customer ticket: Getting an text as media line.

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

Agent View:

![Screenshot 2024-03-12 173216.png](https://community.atlassian.com/t5/image/serverpage/image-id/311537i6EBF565C9EFF478E/image-size/large?v=v2&px=999 "Screenshot 2024-03-12 173216.png")


Answers:
author: GNarsimhagowda - Empyra
body: HI [@Rajesh Konda](/t5/user/viewprofilepage/user-id/2120286) ,

Try Adding the Action : Edit issue fields , First then,

Second Action Comment this will show the attachment in the customer portal and customer will be able to download the file.

For reference i have attached the screenshot of the automation

![2024-03-14_14h55_21.png](https://community.atlassian.com/t5/image/serverpage/image-id/312048i1982B1FB6ABF99AF/image-size/large?v=v2&px=999 "2024-03-14_14h55_21.png")

Thanks.

comments: author: Rajesh Konda
body: Hi [@GNarsimhagowda - Empyra](/t5/user/viewprofilepage/user-id/5393239) Thanks for the response, no it is not working. There is an open ticket <https://jira.atlassian.com/browse/JSDCLOUD-12336>. Tried alternate solution but that to not working.


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Add user with access only for 1 organization
Asked by Vova:

Hello   
How can I add user to Jira Service Management project as a team member (not customer) but make available only 1 organization for the user?


Answers:
author: Denise Lydia Ellis
body: Hi Vova,

Review these articles as they outline the information and steps relevant to your question to help you add your user to the you JSM project as a team manager.

* <https://support.atlassian.com/jira-service-management-cloud/docs/view-team-member-roles/>
* <https://support.atlassian.com/jira-service-management-cloud/docs/add-an-agent-to-your-service-project/>

Hope this helps.

Cheers,

Denise


Tags: cloud

jira-service-management

jira-service-management-cloud
forms creation with JSM DC
Asked by Arti Patil:

I am working on setting up the JSM DC instance for ITSM project. Within a project, there is a need to create a form within dynamic fields.  
In the cloud i can create such forms for customers, however, is the same functionality available on DC? Also if limited functionality is available can it fulfill purpose?


Answers:
author: Florian Bonniec
body: Hi [@Arti Patil](/t5/user/viewprofilepage/user-id/5450603)

If you need to have conditional feilds displayed I'm afraid you will need an app for this.

[ProForma: Forms \& Checklist for Jira \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1215833/proforma-forms-checklist-for-jira?tab=pricing&hosting=datacenter)

Regards


Tags: data-center

dynamic-forms

forms

jira-service-management

jira-service-management-data-center
Is it expected behaviour for the Request Type to not pull through?
Asked by Jack Nicholls:

Hi all,

We're trying to configure a few automations for our team managed projects and whilst doing so, we've noticed that the Request Type field isn't pulling through to the issue as a standard field. Just wanted to check if this is expected and if so, can we workaround this by adding the field a different way?

Thanks!


Answers:
author: Mark Higgins
body: Hi Jack,

Apologies if I'm stating the obvious.

On the form / Issue View needs to be shown, such as:

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

And in the automation you would need to set the Request Type like:

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

Hope that helps

Regards

Mark


Tags: cloud

jira-service-management

jira-service-management-cloud

request-type

team-managed-projects
Adding customers
Asked by Sarah Benhaim:

Hello there, i opened a new project, (ITSM) what i need is to create a database of cutomers and to be able to assign them issues (not vice versa)  
How can i do that in Jira Service Management cloud?


Answers:
author: Asmath Basha S
body: Hi [@Sarah Benhaim](/t5/user/viewprofilepage/user-id/5450547) ,

=\> In JSM (Service Project) you need to give Agent access to the Users those who are all working under ITSM Project.

=\> Then add those members in the ITSM Project whichever you have created.

=\> Finally you have added the Users who will work in that project.

Thanks,

Asmath


author: Susanna Babayan
body: Hi Sarah! out of curiosity: do you mean put them as reporter or as assignee? why do you want to assign them issues?


Tags: cloud

jira-service-management

jira-service-management-cloud
401 forbidden on /config/statustype/{id}
Asked by Thomas Goossens:

Hi everyone,

I am actually using Assets REST API with Oauth2 for authentication. I succesfuly get a code that i exchange for a bearer token and everything works good.

<br />

I can make quiet any requests that i need except when i try to fetch a status by it's ID.

Atlassian returns me 401 forbidden..

Here are the scopes i set :

![image.png](/t5/image/serverpage/image-id/311518i529C136626C0A18E/image-size/large?v=v2&px=999 "image.png")

Any idea of what scope do I need to use GET on /config/statustype/{id} ?

Thanks a lot


Answers:
author: Philipp Kriegel
body: Hope someone will give an answer, as i need /config/statustype.

comments: author: Thomas Goossens
body: I finally found that they are no scopes set on Atlassian's side, so we have to wait..


Tags: cloud

jira-service-management

jira-service-management-cloud