youngmon/atlassian-qna huggingface dataset:
Is there a way to kick off a child dependent plan regardless of the parent build being successful?
Asked by Jared:

plan1 will run a set of tests. The plan will fail due to some tests failing.

plan2 will collect pass/fail status of tests run in plan1.

I would like plan1 to trigger plan2 regardless of failing status. Is this possible?


Answers:
author: Jeremy Owen
body: Hey Jared,

You could use the below plugin and setup a trigger on Plan 2 that triggers after Plan 1 failure:

* [Fail Build Trigger for Bamboo](https://marketplace.atlassian.com/apps/1215235/fail-build-trigger-for-bamboo?hosting=server&tab=overview)

You'd still need to maintain the dependency that is triggering Plan 2 after successful builds in addition to it.

If you wanted to rely on native Bamboo functionality only, I would suggest setting up a Script Task as a **Final Task**(gets executed even if previous jobs fail) in your plan that triggers Plan 2 via Bamboo's REST API.

E.g.

```
curl --user ${bamboo.username}:${bamboo.password} -X POST http://bamboo:8085/rest/api/latest/queue/PROJ-PLAN-KEY
```

I've also included the an existing feature request which is relevant to your requirement, if you'd like to keep tabs on it:

* [BAM-17942: Allow the option to trigger dependent builds if parent fails](https://jira.atlassian.com/browse/BAM-17942)

Hope this helps. :)

Cheers,

Jeremy
Cannot log into Bamboo test instance
Asked by tdzarnes:

I installed Bamboo v 5.15 to mimic our production account. Imported data from production and now cannot login to the test account. "You have entered an invalid username and password. Please try again." I have tired my personal login as well as the admin login from production. Anyway to get around this and get logged in? I want to upgrade the test instance to the latest before production.


Answers:
author: Chris Berry
body: Hi Todd,

It sounds like your Bamboo instance is pointing to an external user directory and that you can not access it from your dev system. The following article may help.

[Bamboo lost connection to the external user directory preventing users from logging in](https://confluence.atlassian.com/bamkb/bamboo-lost-connection-to-the-external-user-directory-preventing-users-from-logging-in-678691207.html)

thanks

Chris

Atlassian support - Bamboo
Build Visual Basic 6 projects with Bamboo
Asked by Ignacio Sebriano:

Hi Community,

Pretty much that, I would like to use Bamboo to build Visual Basic 6 apps, does any one did this?.

I haven't found any plugin or some other kind of solution to make this type of job on Bamboo.

Thanks a lot.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Let's use Script task :)

This one will cover it :)

Cheers,

Gonchik Tsymzhitov

comments: author: Ignacio Sebriano
body: Thanks for your reply Gonchik, but since Visual Basic 6 have the compiler on its own Visual Studio IDE how would you use script task to solve the compiling?. Sorry if my question is too dumb....

Thanks in advance!.


author: Gonchik Tsymzhitov
body: I hope, you need MSbuild

<https://github.com/Microsoft/msbuild>

<https://docs.microsoft.com/en-us/visualstudio/msbuild/walkthrough-using-msbuild?view=vs-2017>

or try to validate on command line build, then reuse it into Scripted Task.

Cheers,

Gonchik


Tags: bitbucket-server

server
changes to bamboo github repo to add to regex filter include dont work
Asked by lance_lyons:

Hi, I recently made a change to a regex expression to include a couple new folders in our github repo. I tested the regex expression and the file path/name and it showed a match which is what it should show. I used [https://regex101.com/](https://regex101.com/?) to test the change out.

I noticed that a file change that actually happened did not trigger the build or show as a commit in bamboo.

My question is do I need to recycle the bamboo server /service to pick up the regex change?


Answers:
author: Jeremy Owen
body: Hey Lance,

You don't need to restart the server to pickup RegEx changes. They should be reflected immediately.

Would you be able to share your RegEx and the file/path that changed and didn't trigger?

Also, are changes in the paths previously covered by the RegEx still triggering as expected?

One thing to note is that the RegEx has to cover the entire path and filename. It doesn't work off partial matches. We have some examples in the below documentation:

* [Plan Repository Include Files Examples](https://confluence.atlassian.com/display/BAMBOO/_planRepositoryIncludeExcludeFilesExamples)

Cheers,

Jeremy


Tags: bamboo-administration
Bamboo license key not working
Asked by mnagen:

I just downloaded bamboo and got the free license to use it for 30 days and when i enter the license and proceeding to express installation. I'm getting the below error, any faced this, can you share what worked for you, Thanks in advance

Unable to access this resource due to a failed XSRF check. Please ensure that a valid XSRF token is provided in the request.

Error code: XSRF_FAILURE_NO_TOKEN_IN_PARAMS


Answers:
author: Foong
body: Are you accessing multiple Atlassian Applications?

Try using Browser Incognito Mode to access Bamboo only.


Tags: key

licence
How to delete a Bamboo plan by API
Asked by sarah-cit:

There's a way to delete a plan by API?  
I've looked at <https://docs.atlassian.com/atlassian-bamboo/REST/5.13.2/#d2e2421> but I couldn't find a method that deletes an specific plan.


Answers:
author: Jeremy Owen
body: Hey Sarah,

Unfortunately there's no REST API to delete a plan at this time.

As an alternative, you could utilize an **internal** Bamboo API to perform the removal but that's subject to change (and has changed in the past) between versions without much notice. So it's risky to rely on this endpoint being static.

There's an example on how you can do that for **Bamboo 6.6** posted by my colleague as an answer to the below question:

* <https://community.atlassian.com/t5/Bamboo-questions/Bamboo-REST-API-to-delete-plans/qaq-p/899665>

However I noticed that you were looking at the **Bamboo 5.13.2** REST API documentation and the above example won't work on **Bamboo 5.13.2**.

I've adapted the example for **Bamboo 5.13.2** and included it below:

```
#
# Marks plan for deletion. Plan will be deleted by batch job.
#
# replace {username}
# replace {planKey}, e.g PROJ-PLAN
# replace http://localhost:8085 with URL to access Bamboo

curl -k -u {username} \
 -H 'X-Atlassian-Token: no-check' \
 -H 'Accept: application/json' \
 -H 'Content-Type: application/x-www-form-urlencoded' \
 -d 'buildKey={planKey}' \
 -X POST 'http://localhost:8085/chain/admin/deleteChain!doDelete.action'
```

Hope this helps! :)

Cheers,

Jeremy
nuget not recognized in script
Asked by Bobby:

I am a newbie in bamboo, and i successfully did the checkout and build part, but now i am trying to restore nuget packages before the build, but it fails with the below error message.

This error message happens when the command is not included in the path variable. Its there, and i am also able to type "nuget restore MySolution.sln" in the cmd and it restores all my packages. But when i try through Bamboo, in which i use Script configuration task type, with interpreter as bin/sh or cmd.exe, Script location as Inline and in the script body i type "nuget restore MySolution.sln".

Is there something else i should be doing ?

nuget is not recognized as an internal or external command


Answers:
author: Jeremy Owen
body: Hey Bobby,

Welcome! :)

Firstly, are you running these builds in a local or remote agent?

If it's a remote agent build it might be caused by a bug in the service wrapper which causes a clash when the *PATH* environment variable is present as both a user and system environment variable:

* [Remote agent does not pick up the Path environment variable correctly when running as a Windows Service](https://confluence.atlassian.com/bamkb/bamboo-or-remote-agent-does-not-pick-up-the-path-environment-variable-correctly-when-running-as-a-windows-service-323982768.html)

If it's a local agent build, I'd be curious if the path to your *nuget* binary only exists on the user PATH and perhaps your Bamboo process / service is running as a different user to what you're using in your command-line tests. In that case, could you try running Bamboo as a console app from *\<bamboo-install\>/bin/start-bamboo.bat*as the same user where your command-line tests were succeeding?

Cheers,

Jeremy
How to migrate from Bamboo cloud to Bamboo local/server?
Asked by Swaminathan N:

Migration of bamboo cloud to bamboo local/server is possible? If yes please guide with the steps.


Answers:
author: Chris Berry
body: Hello Swaminathan,

Can you clarify your requirements? We had end-of-life the Bamboo Cloud last year.

<https://confluence.atlassian.com/migration/bamboo-server>

Do you have Bamboo installed within AWS as per <https://confluence.atlassian.com/bamboo/running-bamboo-server-in-aws-858705568.html> and you now want to move it to a Server?

thanks

Chris

Atlassian support- Bamboo

comments: author: Swaminathan N
body: Hi Chris,

Many thanks for the reply. We have Bamboo installed within AWS and want to move it to another server as you have mentioned. Please guide in carrying this out. Also we have other two conditions when doing this.

1. How to migrate from one instance (e.g AWS) to our local or other AWS account?

2. How to migrate select applications in Bamboo cloud to local? (i.e only the required applications are to be migrated from Bamboo cloud to local)

Please guide us to carry out this migration in Bamboo. Thanks in advance.


author: Swaminathan N
body: Hi Chris,

Can you please guide me in doing this.


author: Chris Berry
body: Hi Swaminathan,

Apologies for the late response.

If your AWS instance was installed using the ec2-wizard then your install will have user data bamboo-home stored under the /media/atlassian-data/data/*bamboo* /current directory.

The following two documents describe how to move a Bamboo instance between servers.

[Moving bamboo between machines](https://confluence.atlassian.com/bamkb/moving-bamboo-between-machines-134873224.html)

[How to Upgrade/Migrate Bamboo](https://confluence.atlassian.com/bamkb/moving-bamboo-between-machines-134873224.html)

If you require any further assistance please raise a support ticket and we will be pleased to assist.

thanks

Chris
Single linked repository with multiple plans trigger on changes in specific directories
Asked by sigmunha:

We have a repository with multiple services that should be built and deployed individually, but are all related. Since there's just one repository, it makes sense to not configure the same repository many times as plan repositories (also, plan repositories are marked as deprecated in the docs and will be removed in the future). Although, this is of course an option, one repository configuration for each plan, where only specific directories are included for each.  

I don't really require a sparse checkout, but I would like to have polling trigger only on changes to files in specific directories. So we don't kick off 10-20 builds and deployments every time we push a commit.  

I'd also like builds to happen automatically, and deployment to staging to be automatic on changes to the master branch, but not for unchanged services.  

In Jenkins this is quite easy, as you can poll specific sub-directories or files, but triggers seem very limited in Bamboo.


Answers:
author: Chris Berry
body: Hello Sigmund,

You should be able to achieve what you want by using the regex feature of change detection.

Configure the plan, goto the Repositories tab and select your repository.

Scroll down to the bottom and expand Advanced Options.

There is a dropdown for "Include / exclude files", select "Include only changes that matches to the following pattern" then a textbox will appear underneath it where you can specify a regular expression to express your subdirectory.

This is discussed in an old community post.. [https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-trigger-a-Bamboo-build-on-changes-to-a/qaq-p/247407](https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-trigger-a-Bamboo-build-on-changes-to-a/qaq-p/247407|https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-trigger-a-Bamboo-build-on-changes-to-a/qaq-p/247407)

thanks

Chris

Atlassian support - Bamboo

comments: author: sigmunha
body: Ah, this is possible on a plan basis for linked repos in newer versions? I just joined the project, and the Bamboo installation is quite old, 5.7. :/  

I will recommend we allocate some time to upgrade.

Thanks!


Tags: directory

git

poll

repository

trigger
Failing task since test cases were expected but none were found.
Asked by Praful:

I have a Bamboo job for mulesoft code, with steps as code checkout, build, test which generates coverage report, deploy.  
Test step is failing with message 'Failing task since test cases were expected but none were found.' and coverage report is generated in specific path.  
When I remove the specific path, job is success but coverage is not generated.  
I tried enabling 'maven return code', which makes the job success, but can't see coverage report.

1. Give the path \*\*/target/\*, enable maven return code - job success, coverage not generated  
2. Give the path \*\*/target/\*, disable maven return code - job failed, coverage generated


Answers:
author: Gonchik Tsymzhitov
body: Hi!

We add the artifact in Junit4 xml format and as final task works built-in Junit4 parser

Hope it helps

Cheers,

Gonchik Tsymzhitov


Tags: mulesoft
Automatically create Bamboo branches for existing Git branches
Asked by gabor szabo:

In Bamboo I have set up automatic branch creation, but it will only recognize branches that were created in git \*after\* I set up Bamboo. We have a number of history branches, but Bamboo does not create branches for those. Not even if I push out some new code.

How can I convince Bamboo to include those old branches as well?


Answers:
author: Foong
body: Feature request <https://jira.atlassian.com/browse/BAM-12072>


Tags: git
Copy data from Jira using Azure Data Factory or Synapse Analytics - operation timeout error
Asked by Sayali Sonawane:

Hello Team,

I'm using below link to connect to JIRA. However, the connection is successful but still not able to view the table names or list.

I'm getting operation timeout error.

<br />

<https://learn.microsoft.com/en-us/azure/data-factory/connector-jira?tabs=data-factory>


Answers:
author: Sayali Sonawane
body: Resolved- Upgraded the SHIR where the synapse instance was there, it worked


Tags: cloud

jira-service-management

jira-service-management-cloud
Email notification limit due to maxxed out automation
Asked by SBACTL_JRFontanilla:

When we reach the maximum limit of automation. It'll affect the email sending as well right?


Answers:
author: John Funk
body: Hi [@SBACTL_JRFontanilla](/t5/user/viewprofilepage/user-id/5088909)

If you are asking about the emails sent by Automation, yes, it will include those because they are generated by a rule being executed.


author: Kranthi Kumar
body: Hello [@SBACTL_JRFontanilla](/t5/user/viewprofilepage/user-id/5088909)   

FYI, The Jira Free plan allows for 100 emails per day and Unlimited emails triggers in all major plans.  

In case of any error in automation or outgoing mail, Jira will trigger an email to the admins.  

Thanks,  
Kranthi   

<br />


Tags: cloud

jira-service-management

jira-service-management-cloud
Jira form cannot show attachments in customer portal
Asked by Carol Su:

We utilize forms for submitting requests, and these forms include a field for attaching files.

Previously, the forms functioned properly. However, today, we found that attachments are not displaying in the customer portal.

![WeChat Screenshot_20240418154535.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/319088iFDA68230BC6C19E7/image-size/large?v=v2&px=999 "WeChat Screenshot_20240418154535.jpg")

<br />

Interestingly, from the backend portal, we can view the attachments without any issues.

![WeChat Photo Editor_20240418154751.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/319090iBBCE3585440B141A/image-size/large?v=v2&px=999 "WeChat Photo Editor_20240418154751.jpg")

Does anyone have insights on how to resolve this issue? Thank you!


Answers:
author: Fazila Ashraf
body: Hi [@Carol Su](/t5/user/viewprofilepage/user-id/5257124)

By backend portal, do you mean agent view?

I recommend you to check on this KB -\> <https://confluence.atlassian.com/jirakb/attachments-not-viewable-on-customer-portal-1216970824.html> and see whether it helps


author: Kranthi Kumar
body: Hello [@Carol Su](/t5/user/viewprofilepage/user-id/5257124)   

FYI, Could you please check the project field configuration  

[https://confluence.atlassian.com/jirakb/attachment-field-is-not-appearing-on-customer-portal-when-creating-new-requests-or-you-can-not-add-it-on-request-types-927728644.html#:\~:text=It%20must%20be%20enabled%20from,the%20field%20to%20be%20visible](https://confluence.atlassian.com/jirakb/attachment-field-is-not-appearing-on-customer-portal-when-creating-new-requests-or-you-can-not-add-it-on-request-types-927728644.html#:~:text=It%20must%20be%20enabled%20from,the%20field%20to%20be%20visible).  

Thanks

comments: author: Kranthi Kumar
body: Hello [@Carol Su](/t5/user/viewprofilepage/user-id/5257124)   

check wheater; Agent sends using sharing without Customer or Public.


Tags: cloud

jira-service-management

jira-service-management-cloud
Please help with the automation steps
Asked by shivani shirguppi:

"trigger notifications to the approvers after every 24 hours until they approve the request, so that instead of going into Jira and see on which exactly they need to take an action."

Can we create an automation for this?

Please help with the automation steps


Answers:
author: John Funk
body: Hi Shivani,

You can approach this a couple of ways. One is to create a dashboard that shows the Approvals waiting on them. Create a filter with Approvers = currentUser() or whatever field you use for identifying them as an approver. And also add the status to the filter so it will only show issues in that status waiting for approvals. Then add a Filter Results gadget based on that filter. Just remember to share the dashboard AND the filter with the appropriate users so they see it.

Second, you can create an automation rule based on a Scheduled Trigger. In the JQL for the trigger, use the same thing as the filter above.


author: Kranthi Kumar
body: Hello [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115)   

Write a JQL query using the status field, save the filter, and attempt automation actions using the SCHEDULER.  

Let me know   

Thanks  
Kranthi


Tags: cloud

jira-service-management

jira-service-management-cloud
SLA
Asked by Kranthi Kumar:

Hello

I have created a few SLAs

1. TIME TO FIRST RESPONSE - 8h

2. IN PROGRESS - 96h

3. COMPLETE RESOLUTION - 720h (this start from In progress)

Issues -

1. SLA in 3 is not change in tickets

2. Why in 2nd it's showing 3d 24

Please let know if any additional information required.

![IMG20240418105631.jpg](/t5/image/serverpage/image-id/319086i405AF1E84B28018F/image-size/large?v=v2&px=999 "IMG20240418105631.jpg")


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Kranthi Kumar](/t5/user/viewprofilepage/user-id/5029257) ,

please share SLA configuration and ticket detail in which it doesn't appear.

Fabio


Tags: data-center

jira-service-management

jira-service-management-data-center

sla
Sandbox VS/AND DEV Atlassian Enviroment
Asked by Danielle David:

What's the difference between a Sandbox and DEV Jira environment.

Are there pros and cons to have both?

Part of our Package we get Sandbox, is there a reason we should have a DEV environment as well?


Answers:
author: Kranthi Kumar
body: Hello [@Danielle David](/t5/user/viewprofilepage/user-id/4577696)   

In Jira Cloud, The Organization is primarily a site, and we can create only one sandbox for the site.  

Sandbox feature is available only in the Premium And Enterprise Plans   

In the Enterprise plan, we can create up to 150 sites for under single Organization and we can create a one sandbox for these child sites  

We have the Capability to take copies from Production to Sanbox, But not sandbox to production.  

I hope I answered your questions   

comments: author: Danielle David
body: Thanks Kranthi, yes this has been helpful.

So there would be no need for a separate DEV environment?


author: Kranthi Kumar
body: Yes, [@Danielle David](/t5/user/viewprofilepage/user-id/4577696)   

I think, It's not necessary to create a another a instance for DEV   

Why I said is not required   

Because, We can simply copy data from the main site to Sandbox site. its sum heavy task to copy transfer to Main site to another site.  

I am not a Atlassian agent. Please collect this data as suggestion.


Tags: cloud

jira-service-management

jira-service-management-cloud
Default Highest Priority when select Bug Issue Type
Asked by Pei Xian Yeo:

Is there anyway to setup the Priority by default as Highest Priority when Issue Type Bug been selected during Jira Ticket Created?

Currently it is defaulted as Medium Priority during ticket creation.

![Screenshot 2024-04-18 112945.png](/t5/image/serverpage/image-id/319077iDEA932B4781C3820/image-size/large?v=v2&px=999 "Screenshot 2024-04-18 112945.png")

![Screenshot 2024-04-18 113007.png](/t5/image/serverpage/image-id/319078i66D97234B7B9BB2D/image-size/large?v=v2&px=999 "Screenshot 2024-04-18 113007.png")

To be would like to have the Highest Priority been default when Issue Type - Bug been selected

![Screenshot 2024-04-18 113020.png](/t5/image/serverpage/image-id/319079iE893176B31F96F30/image-size/large?v=v2&px=999 "Screenshot 2024-04-18 113020.png")


Answers:
author: Laurie Sciutti
body: hello [@Pei Xian Yeo](/t5/user/viewprofilepage/user-id/5478570) and welcome to the Community! The default is set in the Priority Scheme but that is for all issue types. If you want to set the default for a certain issue type, you can do that with an Automation Rule.

comments: author: Pei Xian Yeo
body: Hi Laurie, Thanks for the warm welcome. If you dont mind, can you guide me through how can i access to Automation Rule? Thank you.


Tags: cloud

jira-service-management

jira-service-management-cloud
Advanced formula
Asked by Luana Silva:

Ol?. ? poss?vel utilizar dois campos num?ricos em um formul?rio e realizar a soma entre eles utilizando advanced formula?


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

I think you can do this by using Jira Automation. See this existing post:

<https://community.atlassian.com/t5/Jira-Software-questions/How-can-I-add-2-fields-to-get-a-total-sum-in-a-3rd-custom-field/qaq-p/1800791>

Danut.


author: Paul Pasler
body: Hi [@Luana Silva](/t5/user/viewprofilepage/user-id/5478500) ,

In addition to automation, you might want to explore our app, [Awesome Custom Fields](https://seibert.biz/acf-jira-marketplace). It features an [Advanced Formula](https://awesomecustomfields.wikipage.io/c/77037570/advanced+formula) field that allows you to calculate values using other numerical field inputs.

If you have any questions, don't hesitate to [reach out to us](https://seibert.biz/acf-jira-demo)!

Cheers,

paul


Tags: cloud

jira-service-management

jira-service-management-cloud
if an update a comment on one ticket, I want to update the same comment in linked issue
Asked by sreeja pathapelly:

if I update a comment on one JSM ticket, I want to update the same comment in linked issue of Software project.


Answers:
author: John Funk
body: Hi Sreeja,

Create an automation rule based on Issue Commented trigger

Add any Conditions for the issue that has been commented on so that it doesn't fire on every comment on every issue.

Add a Branch for Linked Issues. Select specific Link Types if applicable.

Add action for Comment on Issue - use: {{triggerIssue.comments.last.body}}

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


Tags: data-center

jira-service-management

jira-service-management-data-center