youngmon/atlassian-qna huggingface dataset:
Best practice build code variants
Asked by Oliver Zabel:

Hi,

we're building mulitple variants of our products using code switches. At the moment we have one build plan to build all variants in a row. if one fails we need to go to the log file and see whcih and why the variant failed. I'd like to change this to have one plan per variant. since this would be a nightmare to do it via the web gui i'd like to use either Java Specs or Yaml. I would prefer yaml over java.

Is it possible to generate mutiple plans in one repo stored spec so if i change something in my config, that all plans are updated?

Thanks in advance!

Regards,

Oliver


Answers:
author: somethingblue
body: Hi Oliver,

It appears you can do this, however, you can only link 1 Specs repo to a build at a time but you can generate as many builds from a single plan as you'd like.

Cheers,

Branden

comments: author: Oliver Zabel
body: Hi, i played a little bit with YAML file.

Producing multiple jobs is not a problem - but since they are running parallel this is not a good idea with hundreds of code variants.

Producing multiple stages is also not a problem, but since they run sequentally the first faild job stops the chain.

The best way would be to create multiple plans from a yaml file.

Is this possible and if yes, how?

Thanks!


Tags: rss

spec

yaml
Triggering build plan on pull request
Asked by Alex T:

Hi. I did a research on how to kick off build plan when PR is created, it works flawlessly when I create a branch in the same repo.

However, in my case, I need to start a build plan when PR is created from a fork of the main repo to the main repo. I search the internet/plugins but still didn't find any solid solutions.

I'm using Bamboo 6.2.2 build 60209 \& Atlassian Bitbucket v4.8.4

So my question is the following: is it possible to start a build plan on branches residing in the forked repos when you create PR to the main repo? If so, can I get some tips/links on how this could be done?

Thank you!


Answers:
author: somethingblue
body: Hi Alex,

At this time it doesn't appear this is possible. I checked [JAC](https://jira.atlassian.com/secure/BrowseProjects.jspa?selectedCategory=all&selectedProjectType=all) for a current Suggestion request and found [BAM-14844](https://jira.atlassian.com/browse/BAM-14844). Take a look and make sure the description matches your issue and if so please vote on [BAM-14844](https://jira.atlassian.com/browse/BAM-14844) to add impact.

If you don't agree that matches I would recommend that you create a Suggestion on [JAC](https://jira.atlassian.com/secure/BrowseProjects.jspa?selectedCategory=all&selectedProjectType=all) and post the link here so the Community can vote for this feature request.

Cheers,

Branden

comments: author: Alex T
body: Hi Branden,

yes, this is the exact option I'm looking for. With having more than 50 devs with their own forked repositories it becomes very challenging to setup build pipeline for each PR created.

Will be waiting for the update on BAM-14844.

Thank you for your reply.


author: diegomarcov-uns
body: +1, this really sounds like it should be a Bamboo feature. It's a fairly standard practice to fork repos, work, and create a PR to the main repository.


author: Ben Hansen
body: +1 for targeting plans based on pull request to destination repo fork and/or branch.


author: Leandro Romero
body: +1 really useful feature
configuring a variables task file path
Asked by Prem Chudzinski _extensi_:

<https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html>

In the configuration I've specified an absolute path

**/home/atlassian/prod/bamboo/bamboo_map.properties**

I get an error

> 03-Jan-2018 17:09:44Could not read variable file at '/mnt/ssd1/home/atlassian/prod/bamboo/home/xml-data/build-dir/196609/ABF-ABFT-JOB1**/home/atlassian/prod/bamboo/bamboo_map.properties**' as it does not exist.

So it uses a relative path to the build directory.

That doesn't make any sense as the directory doesn't exist before I run the test.

How do I use this feature then?


Answers:
author: rsperafico
body: Hello [@Prem Chudzinski _extensi_](/t5/user/viewprofilepage/user-id/551438),

Thank you for your update.

I have filed a bug (<https://jira.atlassian.com/browse/BAM-19600>) so information can be provided in Bamboo Inject Variables task and Bamboo's documentation (<https://confluence.atlassian.com/pages/viewpage.action?pageId=687213475>) stating that uses Relative Path to the Build Working Directory.
> How do I use this feature then?

By having the properties files placed in the Build Working Directory from any other resource available to Bamboo (e.g Source Code Checkout, Artifact Download, SCP ...)

Please, feel free to add any comments to the link above as well as commenting on the issue link so our development team review the information provided, adding further information to it.

Kind regards,

Rafael
Can we have a failover or high availability instance setup for Bamboo on VM? i.e. can it be cluster?
Asked by Nithin Dandu:

Does Bamboo supports HA?


Answers:
author: Steffen Opel _Utoolity_
body: After the recent [introduction](https://www.atlassian.com/blog/announcements/the-data-center-family-welcomes-hipchat-and-crowd) of [Crowd Data Center](https://confluence.atlassian.com/crowd/crowd-data-center-935372453.html) and [HipChat Data Center](https://www.atlassian.com/software/hipchat/enterprise/data-center), Bamboo remains the only main Atlassian Server product that doesn't yet offer a high availability (HA) deployment option, unfortunately.

Admittedly its highly flexible remote and esp. [elastic agent](https://confluence.atlassian.com/bamboo/about-elastic-bamboo-289277118.html) concepts do cover some ground in this regard, but the single node server itself is obviously still a bottleneck.

Please watch and vote for the following issue to raise Atlassian's priority for addressing this remaining HA gap within their otherwise fairly complete [Enterprise DevOps stack](https://www.atlassian.com/enterprise/stack):

* [Bamboo data center edition (BAM-18687)](https://jira.atlassian.com/browse/BAM-18687)

comments: author: Nithin Dandu
body: Thank you Stephen!
Injected variables in deployment release name
Asked by Clint:

During compilation of my application a properties file is generated that contains a release name. I have been able to define this file as an artifact and then use the variables defined in it in another build plan using the "Inject Bamboo Variables" task.  

I wish to use one of the injected variables as the release name in a deployment, how do I do this?


Answers:
author: Clint
body: The solution is to change the scope of the variables from 'Local' to 'Result' on the "Inject Bamboo variables" task for the build plan.

comments: author: sudhir.kumar
body: is there any such options, i couldn't find any.


Tags: deployment

variable
Can we schedule backups from macOS to Linux ?
Asked by Karl Sigiscar:

Hi,

On this page:

[Bamboo: Specifying a backup schedule](https://confluence.atlassian.com/bamboo/specifying-a-backup-schedule-289277252.html)

You indicate how to make a backup schedule for Bamboo.

Our question is:

Can we schedule backups from a Bamboo macOS server to a Linux backup server ?

Thanks.

Best regards,  
Karl.


Answers:
author: somethingblue
body: Hi Karl,

You can do this, however, in order to change the file path you'll need to add [bamboo.paths.set.allowed=true](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html). to the **JVM_SUPPORT_RECOMMENDED_ARGS:**
> **Export Directory Path** setting: Bamboo restricts the editing of certain file path settings for security reasons (see [Bamboo Security Advisory 2010-05-04](https://confluence.atlassian.com/bamboo/exporting-data-for-backup-289277255.html#)). If you must configure Bamboo to permit modification to its file path settings, start Bamboo with the system property `bamboo.paths.set.allowed=true`. The procedure for configuring a Bamboo system property is described on [Starting Bamboo](https://confluence.atlassian.com/bamboo/starting-bamboo-289277236.html).  
> Once you have configured your file path setting, we recommend removing or disabling the `bamboo.paths.set.allowed` system property and restarting Bamboo. If your Bamboo instance is accessible to anyone outside your organization, then this will minimize the risk of Bamboo being compromised by security-related attacks.
>
> For large instances we recommend using native database and filesystem backup tools instead of the built in backup/export functionality. For more details, see [Automating Bamboo backup operations](https://confluence.atlassian.com/bamkb/automating-bamboo-backup-operations-702715390.html). Reserve the use of the built-in tools for database type migrations only (e.g. MySQL to Postgre).

Take a look at [Specifying a backup schedule](https://confluence.atlassian.com/display/BAMBOO/Specifying+a+backup+schedule) for additional information as well.

Hopefully this answers your question!

Cheers,

Branden

comments: author: Karl Sigiscar
body: Thanks Branden.
CI pipeline in Bamboo for iOS and Android on a common server
Asked by Karl Sigiscar:

Hello,

We would like to set up a Continuous Integration pipeline with JIRA, BitBucket and Bamboo with only one server, an 8 cores MacPro:

![Continuous Integration.png](/t5/image/serverpage/image-id/11879iE2C3A92CF7C7A8EB/image-size/large?v=v2&px=999 "Continuous Integration.png")

Is it possible to set this up with only one server, only one BitBucket instance and only one Bamboo instance ?

Or do we have to have a macOS server for iOS and a Linux server for Android, both running Bamboo ?

We would much prefer to have one server (Mac) with only one Bamboo instance.

Thanks in advance.

Best regards,  
Karl.


Answers:
author: somethingblue
body: Hi Karl,

[You can do both on the Mac](https://stackoverflow.com/questions/30215743/android-home-not-found-on-mac-os-x-when-running-build-job-with-bamboo) as you can develop for Android on the Mac as well.

One thing I may recommend depending on the system you have is to offload some of the resources to a Remote Agent.

Let me know if you have any questions or run into any issues.

Cheers,

Branden

comments: author: Karl Sigiscar
body: Thanks Brendan. We will probably have some more questions when we receive the Mac Pro server and start setting up the builds.


author: somethingblue
body: No worries at all. If you have more questions please don't hesitate to ask and If I don't know I'll definitely do my best to get an answer for you.

Cheers,

Branden


author: Jeremy_Shutt
body: Is there a way to do the same thing (one bamboo server) from a Windows server? I'm looking for docs on setting up a successful CI for iOS apps. I basically looking for:

1. Get from GitHub

2. Build XCODE (could be a mac server)

3. Sign

4. Deploy to HockeyApp.

I see there's a hockey app plugin, and an older unsupported iOS, Cocoa and XCODE plugin.

I'm basically looking for advice on how other's do this without having to build a whole other bamboo server on a mac.


author: Atul Yadav
body: You can use the Windows server for the Bamboo, use the mac for the Xcode build. Install Fastlane on the mac machine it will do the following tasks,

1. Compile

2. Archive

3. Export Archive

4. Generate ipa

These above tasks will be done by Fastlane alias Gym

Fastlane can be used to sign and deploy the app to the hockey app.

Let me know if that works for you.

Regards,

Atul Yadav


Tags: developer
Unable to pass data validation when reference an object in Jira Assets (JSM) import schema
Asked by Armin Zaugg:

I want to import external data in Jira Assets. I am following the instructions available and the schema - <https://api.atlassian.com/jsm/assets/imports/external/schema/versions/2021_09_15>  
I using static data for the imports during the development process to simplify troubleshooting. Mainly I have:

* The schema file
* A data file devices
* A data file manufacturers

I want to reference a manufacturer to the device attributes using the type "referenced_object". Apparently I dont use the correct syntax because I get a data validation error.

    INFO    22:19:17.451  812d3ec2a80b4dec811065ced224a263  {  jsonValidationErrors: [],  dataValidationErrors: [    {      code: 'MISSING_REFERENCE_OBJECT_TYPE_EXTERNAL_ID',      location: 'Device.Manufacturer'    }  ],  status: 'error'}

I spent hours fiddling with the syntax, especially setting the "objectMappingIQL" string but was never able to make the import work.  

I would highly appreciate detailed documentation or working examples so that I can make progress with my app.  

<br />


Answers:
author: Pedro Arroyo
body: Hi,

it seems like you're not tying your schema and mapping appropriately. See for example:

this is the schema:  

```
{
"externalId": "cmdb::externalId/52742d53-ef1c-44aa-8149-1941c8168f00",
"name": "Home Tablets",
"description": "",
"type": "referenced_object",
"label": false,
"referenceObjectTypeName": "Tablets",
"referenceObjectTypeExternalId": "cmdb::externalId/281e0efe-60a9-41ff-b1fc-69048ece56e0",
"minimumCardinality": 0,
"maximumCardinality": -1,
"unique": false
},
```

this is the mapping:  

```
{
"attributeExternalId": "cmdb::externalId/52742d53-ef1c-44aa-8149-1941c8168f00",
"attributeName": "Home Tablets",
"attributeLocators": [
"macAddress"
],
"externalIdPart": false,
"objectMappingIQL": "\"MAC Address\" in (${macAddress${0}})"
},
```

Hope it helps :)


Tags: cloud

jira-service-management

jira-service-management-cloud
Creating a custom URL for JSM Portal
Asked by Michael Simmons:

Hi All,

I've looked high and low but am unable to find a way to set my JSM portal to a custom URL. I saw that it was available, but can someone point me to it?

I'm using Free JSM Cloud.

Thanks!

Michael


Answers:
author: Marc - Devoteam
body: Hi [@Michael Simmons](/t5/user/viewprofilepage/user-id/1461108)

Yes this is possible, as mentioned by [@Sreenivasaraju P](/t5/user/viewprofilepage/user-id/853354)

But this function is only available on paid subscriptions.


author: Sreenivasaraju P
body: Hi [@Michael Simmons](/t5/user/viewprofilepage/user-id/1461108) ,

Please refer below link for details.

<https://community.atlassian.com/t5/Enterprise-articles/Custom-Domains-in-Cloud-Development-Update/ba-p/2283483>

I doubt ,this is applicable for free Cloud version.


Tags: cloud

jira-service-management

jira-service-management-cloud
Importing tickets through a csv file
Asked by sabrina_honorato:

Iam trying to import some tickets through a csv file to a project in a JSM. But unfortunately, the summary field don't appear for selection (from - to) on JIRA.

I would like to know how can I fix this


Answers:
author: Joseph Chung Yin
body: [@sabrina_honorato](/t5/user/viewprofilepage/user-id/5444523) -

Welcome to the community. Not quite sure your statement of "Summary" field is not available. You should have a column for Summary in your CSV file where you map it to "Summary" field during the import process.

Please advise, so we can support you further.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

csv

import

jira-service-management

jira-service-management-cloud
Can I make a trigger have multiple "If" conditions?
Asked by Erica Sandman:

Example: If I have a Facility ID, and different account managers manage specific IDs, then can I make a trigger that makes ALL of the IDs for one account manager move to their bucket?  

When: Issue Created  
If : Facility ID contains 12, 24, 36  
Then: Assignee = John Smith


Answers:
author: Trudy Claspill
body: Hello [@Erica Sandman](/t5/user/viewprofilepage/user-id/4962112)

What type of field is "Facility ID"; text, number, selection list, ...?

You can't put the condition "in" the trigger, but there are a variety of ways to manage this.

You could use a JQL Condition

![Screenshot 2024-03-04 at 6.23.29?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/310157iF735A252BD83329D/image-size/large?v=v2&px=999 "Screenshot 2024-03-04 at 6.23.29?PM.png")

If you want the rule to be able to examine the field and then assign the issue to one of multiple account managers, based on the field content, then you would want an IF-ELSE condition.

![Screenshot 2024-03-04 at 6.25.52?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/310161i46EB1A399904B842/image-dimensions/304x318?v=v2 "Screenshot 2024-03-04 at 6.25.52?PM.png")

![Screenshot 2024-03-04 at 6.29.01?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/310160i972B8FF2F9369773/image-size/large?v=v2&px=999 "Screenshot 2024-03-04 at 6.29.01?PM.png")

comments: author: Erica Sandman
body: Both of these theoretically should work. I'll test it out and see how it goes. Thank you [@Trudy Claspill](/t5/user/viewprofilepage/user-id/671216)


Tags: cloud

jira-service-management

jira-service-management-cloud
Conditional Drop Down
Asked by Stewart StJames:

What I am looking for a way to do is a custom field that is a drop down and based on what is selected in that drop down another drop down appears with pre defined options.

Example: Drop Down one has department codes, and lets say I click a department code for HR. I want a second drop down to appear that has (lets say OS Options like Linux and Windows) but lets say I pick programing as the department I want the dropdown to only give the option of Unix.

Is there a way to do this kind of conditional formating in Jira Service Management Tickets? I have about 100 Different Departments that need different options based on What is selected in the ticket.


Answers:
author: Fernando Eug?nio da Silva
body: [@Stewart StJames](/t5/user/viewprofilepage/user-id/5444414) , Welcome to the Atlassian Community!

You can do this in one of two ways:

You can use a cascade field, where you can create a dependency on Parent option and child options. So for a main selection, you would have other subsequent options.

Another way to approach this solution is using a structure in Assets, where you can create your departments, associate OS with departments and manipulate this data through Jira fields and using AQL. This will also allow you to have a relationship of dependence from one to the other.

The cascade field can create dependency on only two levels (Parent and Child)

In Assets you can say that other things depend on your 'Department' field, for example, you just need to familiarize yourself a little with how to manage a structure in Assets and its AQLs in Jira fields.

You can know more about Assets here: [Asset management \& configuration management Jira \|? Assets (atlassian.com)](https://www.atlassian.com/software/jira/service-management/features/asset-and-configuration-management)

Hope this helps you


author: Joseph Chung Yin
body: [@Stewart StJames](/t5/user/viewprofilepage/user-id/5444414) -

Welcome to the community. In addition to what [@Fernando Eug?nio da Silva](/t5/user/viewprofilepage/user-id/4606715) suggested, you will need to use a third party add-on to accomplish what you need to do control a dropdown list options based on another dropdown custom field.

Take a look at this add-on "Scriptrunner for Jira"'s Behavior component -

[https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?tab=overview&hosting=cloud)

[https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?hosting=cloud&tab=overview) (NOTE - this separate add-on requires Scriptrunner for Jira to be installed first)

Hope this helps. Unfortunately, it is not something available out of the box.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
Customer portal - allow customers to attach documentation when transitioning to a status
Asked by Allie Stewart:

Our customers do their UAT and report defects back to us using the Service Portal. The workflow gets the issues into a "Client UAT" status and notifies the client.

For their testing, they can transition the issue as "Client UAT Approve" or "Fail UAT". If they "Fail UAT", they need to be able to tell us their repro steps, the environment and **attach supporting screenshots or other documentation**.

Out of the box, Jira does not have this functionality and only provided a very simple comment box on transition. There is a feature request out for this functionality already, but I can't wait years for that.

I'd like to provide a form or custom screen or something for the customer to populate on "Fail UAT" transition. I've tried to create a form to collect the UAT Defect data and allow attachments, but this form has to be on the request all the time. In other words, I can't just have the form show up only when they transition "Fail UAT".

Does anyone have any suggestions or experience with this situation to collect more than just a comment when the customer transitions on the portal? Any ideas/help would be greatly appreciated.

Thank you.


Answers:
author: John Funk
body: Hi Allie,

Are you using the standard approval process built in to JSM to determine UAT Approve or Fail?

If so, one option might be to have an interim status before the Approve/Fail status. You can have the same transition names - Approve or Fail, but then add a transition screen to the Fail transition that includes fields on the screen and Validators for Field Required. Then, then it successfully transitions, you can move it on the appropriate status. So, you are in effect bypassing the built in process.

comments: author: Allie Stewart
body: I'm not using the built-in approval process. I'm not sure how I would set the Approvers because it would different for each customer, but they all use the same workflow. I would have to ask the customer, upfront, who would be testing these issues, and I don't think they know that. Nor do I want them to have to set this manually. Lots of room for error. Unless I'm not thinking about something easier.

But let me play around with the approval process to see if I can get that transition screen to pop up and if I can figure out a way to capture the "approvers". Thanks for the suggestion!


author: John Funk
body: Yeah, if you can populate another field with a user value (the customer would NOT be able to do that), then you should be able to copy the user into the Approvers fields.


Tags: cloud

jira-service-management

jira-service-management-cloud
I?m using jira cloud service desk project .. I need how to auto populate values based on one field.
Asked by Naveen kumar:

**How to auto populate values in jira forms based one field that is user ..User rest of the details should be auto populate by using automation rules. ? Could you please give me high level guidance to solve .. ?**


Answers:
author: Asmath Basha S
body: Hi [@Naveen kumar](/t5/user/viewprofilepage/user-id/5444339) ,

Can you elaborate your exact requirement in detail so that it will be helpful to understand and create the Automation rules based on that.

comments: author: Naveen kumar
body: Hi [@Asmath Basha S](/t5/user/viewprofilepage/user-id/5035082) Thanks for your response.

I have field name called "customer" in jira forms.

when customer selects his name from the customer service desk portal.

The other fields should auto populate their values like first name , last name, and location based on customer field value in jira forms .

Could please provide any high level guidance and automations rules to do so.


Tags: jira-service-management

jira-service-management-server

server