youngmon/atlassian-qna huggingface dataset:
Search Bamboo audit logs
Asked by David Gard:

How do you search the Bamboo audit logs?

I need to track down when a plan was deleted and by whom, but there seems to be no obvious was of searching the audit logs.

Though it seems incomprehensible that a product would ever be released without such functionality, there is no mention of it in the [documentation](https://confluence.atlassian.com/bamboo/tracking-changes-to-your-bamboo-server-405046591.html "Tracking changes to your Bamboo server").

Please can someone point me in the right direction.


Answers:
author: Jimmy Seddon
body: Hi [@David Gard](/t5/user/viewprofilepage/user-id/510742),

It doesn't look as though search is something that is available in Bamboo at this time.

But there is an open feature request for it: <https://jira.atlassian.com/browse/BAM-15990>

I'd recommed voting and commenting on that feature.

At the same time what I have also found is that if you seach in the atlassian-bamboo.log file you should be able to find the REST API call that was made to delete the plan. If you use an editor like Notepad ++ you should be able to search through all the log files in the logs directory for the call you are looking for. That might help you as a workaround for now.

You will be looking for something like this:

\[AccessLogFilter\] jseddon POST http://\<bamboo_servername\>:8085/ajax/deleteChain.action 261668kb  
\[AbstractQuartzTriggerActivator\] Scheduler job repository.change.jobs.CHAIN:IGD-CDB:1 not found, not deleted  
\[DeletionServiceImpl\] Stopping any running builds for IGD-CDB  
\[DeletionServiceImpl\] Scheduling plan \[IGD-CDB\] for deletion

I hope that helps!

-Jimmy

comments: author: David Gard
body: Thanks for the reply Jimmy.

I found the feature request that you mentioned after I created the ticket. It's very concerning though that it was opened more than 4 years ago and it's still not even on the road map.

I'll try and find the location of the log file, although given that we lock down access to the Bamboo server for obvious reasons, I'm not sure if I'd have the required access.

Thanks,  
David


Tags: audit-log

search
Unable to apply label to Bamboo Builds - POST api
Asked by Amol Kandurwar:

My curl request looks like below,

**curl -X POST -H "Content-Type: application/json" -H 'authorization: Basic XXXX' -d '{"name":"UTWeekly"}' https://BambooURL/rest/api/latest/result/{projectKey}-{buildKey}-{buildNumber}/label**

I am getting "**The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource**" error when made post api to add label to the build.

And you REST API document does not have proper details about the content type json. It shows xml info there. That needs fix.

Please help me fix the issue.


Answers:
author: Ellie Z _they_them_
body: Hi [@Amol Kandurwar](/t5/user/viewprofilepage/user-id/3519650)

Thank you for reaching out to the Atlassian Community!

The command you are running looks correct, however, it appears that you may be using "smart" quotation marks. Is it possible that the command was typed and copied out of a text editor?

```
curl -X POST \
-H "Content-Type: application/json" \
-H 'authorization: Basic XXXX' \
-d '{"name":"UTWeekly"}' \
https://BambooURL/rest/api/latest/result/{projectKey}-{buildKey}-{buildNumber}/label
```

To test, I ran the same command on my local instance, and although it returned no detail, the label appeared on the Build Result that I referenced.

Thank you for calling out the XML data being shown in place of the JSON detail. I have filed a request to our Technical Writer to review this. You can find the request at [BAM-20569](https://jira.atlassian.com/browse/BAM-20569).

Please let me know if you have any questions or concerns.

Thanks,

Elias \| Bamboo Senior Support Engineer
Missing wildcard matching while configuring tasks for deployment on Bamboo
Asked by Aisha:

Hi Team,

Bamboo states "Could not find file" whenever I use wildcard matching to match the war files with a version number similar to IP address. Doesn't Bamboo support wildcard matching. I verified that my regex works when i use it on Regex matchers like Regex101 but Bamboo complains about file not found though the war file exists.


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi Aisha,  

Bamboo artifacts only support [Ant file copy patterns](http://ant.apache.org/manual/dirtasks.html) not regular expressions.  

Kind regards
2 Plan branches for the same branch
Asked by Marc Eastman:

Hi there,

I was wondering if its possible to have 2 plan branches that are both triggered by the same branch. My problem is that the first one I set up is connecting but the 2nd one can't authenticate, even though they have the exact same settings. Does anyone know whats happening here?  

EDIT: I could also settle for triggering 2 plans from the same gitlab trigger but it only allows me to enter one build key in the integration settings  

EDIT 2: Could also be worth mentioning that one of the branch plans works but the regular plan won't start and gives same error:  

```
Warning: Permanently added '...' (RSA) to the list of known hosts.
BAMBOO-SSH-PROXY: [SSH proxy tried to connect to [git@gitlab.gsfc.nasa.gov/...]: and failed due to the following error: [Authenticating remote session failed]: No more authentication methods available]
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```


Answers:
author: Marc Eastman
body: my problem was I wasn't using the correct ssh key on the new branches

comments: author: Marc Eastman
body: still looking for a way to trigger 2 bamboo plans from 1 gitlab repo. Need to setup 2 bamboo integrations but only allows 1


Tags: branch

gitlab

plan
Do remote agents have its own workspace
Asked by Atul Yadav:

When the remote agent is deployed and the specfic jobs run on them , do remote agent have their own local working directory or it is refers to central Bamboo server WD.


Answers:
author: Steffen Opel _Utoolity_
body: Hi Atul,

Welcome to the Atlassian Community!

Remote agents indeed have their own working directory, refer to [Bamboo agent home directory](https://confluence.atlassian.com/bamboo/locating-important-directories-and-files-289277247.html#Locatingimportantdirectoriesandfiles-agenthomeBambooagenthomedirectory) for details:
> When you [installed](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html) your remote agents (if any), you specified the location for the *Agent home directory* --- this is the directory where the agent's configuration data is stored. The default name of this directory is `bamboo-agent-home`.
>
> \[...\]
>
> The contents of the agent home directory are:
>
> **bamboo-agent.cfg.xml**   
> This contains configuration information about this remote agent. Most notably, it stores the agent id, which gets generated the first time this agent connects to the Bamboo server.
>
> **xml-data/build-dir/**   
> This is where the agent will check out the files and perform builds (similar to the Bamboo server's `xml-data/build-dir/` directory)

You can also change the default location during [Bamboo remote agent installation](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html), as outlined in section *Changing where the remote agent stores its data* within [Additional remote agent options](https://confluence.atlassian.com/bamboo/additional-remote-agent-options-436044733.html):
> By default, the remote agent will store its data in a USER_HOME/`bamboo-agent-home`. If you wish to specify a different directory, add the following command line parameter before the JAR file name:
>
>     -Dbamboo.home=RemoteAgentHome
>
> where *RemoteAgentHome* is the path to the Bamboo agent home directory you created in step 1.1.
>
> \[...\]

Cheers,  
Steffen

comments: author: Atul Yadav
body: Thanks Steffen
Options for extracting tests 'minutes taken in total' over time
Asked by paulm29:

I'd like to extract the 'minutes taken in total' for Tests from a specific job in a specific build.

Ideally, this could be done by the REST API, but I don't see the option for this, only buildDurationDescription, which is different.

URLs tried: <http://bamboodev/rest/api/latest/result/HOME-NH2EPHC-JOB1-latest?expand=testResults.allTests> and <http://bamboodev/rest/api/latest/result/HOME-NH2EPHC-latest?expand=stages.stage.results.result.testResults>

- where JOB1 is the Default Job and HOME-NH2EPHC is the build key.

I dug up this old thread, but the option suggested, "analyze the test result xml files stored on the Bambo server in the "builds" directory" doesn't seem feasible in my environment: <https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-get-at-the-test-running-time-data-in-Bamboo/qaq-p/152047>

What are my other options? Are there suitable plugins, or is there something I have missed?

It would be great to get a history of test times for a build/job, but one step at a time...

Thanks


Answers:
author: Daniel Santos
body: Hi [@paulm29](/t5/user/viewprofilepage/user-id/2475501)

I don't know any plugin used for this, but I don't know a lot of Bamboo plugins anyway.

As you already know, Bamboo REST API does not provide such information for tests.

In order to help you moving forward, I built the following query that may be useful to you. You might need to adjust it to your purpose, but at least you have a start.

```
SELECT TCL.TEST_CLASS_NAME
     , TCA.TEST_CASE_NAME
     , B.FULL_KEY
     , TCA.FIRST_BUILD_NUM
     , TCA.LAST_BUILD_NUM
     , TCA.AVG_DURATION
FROM TEST_CASE TCA
JOIN TEST_CLASS TCL ON TCA.TEST_CLASS_ID=TCL.TEST_CLASS_ID
JOIN BUILD B ON TCL.MASTER_JOB_ID=B.BUILD_ID
```

I also created a feature request for this:

* [\[BAM-20580\] Provide a way to retrieve tests duration programmatically](https://jira.atlassian.com/browse/BAM-20580)

I hope that helps.
EC2 elastic agent security groups.
Asked by Alistair.Mackay:

Hi,

Having issues starting EC2 elastic agents within a VPC.

The way our VPC is configured, I require the agents to be assigned an additional security group to correctly function - specifically to get access to our corporate DNS server which is located on another subnet within the VPC. I have confirmed that when I manually add the required security group then run the agent start script, then the agent loads and the bamboo server marks the agent as ready.

How can I get the security group assignment configured?

Thanks.


Answers:
author: Daniel Santos
body: Hi [@Alistair.Mackay](/t5/user/viewprofilepage/user-id/3083369)  

Your question seems pretty similar to this one:

* [Solved: How to associate an Amazon Security Group with a Bamboo Elastic Image when launching in a VPC](https://community.atlassian.com/t5/Bamboo-questions/How-to-associate-an-Amazon-Security-Group-with-a-Bamboo-Elastic/qaq-p/24691)

Have you tried to configure this in AWS side?  

The VPC on Bamboo side is configured through **Image configurations \>\> Edit (the image you want)\>\> Use Virtual Private Cloud**, but I guess this is not your issue, right?

comments: author: Alistair.Mackay
body: Hi [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)   

The underlying issue is that in the VPC into which the agents are being launched, the only available DNS server is provided by an Active Directory instance. In order to reach that server, an additional security group is needed on the newly launched elastic instance.

We did not want to add a heap of AD rules to the default bamboo SGs.

I solved this by creating a lambda that's triggered when the instance is launched. This lambda adds the required SG before the instance reaches the agent load phase.

Cheers,


author: Daniel Santos
body: Hi [@Alistair.Mackay](/t5/user/viewprofilepage/user-id/3083369)

Thank you so much for sharing how you solved the problem. This will certainly help other users that may face the same issue.  


author: Alistair.Mackay
body: When I have time, I'll publish the solution in my GiHub account.


author: Daniel Santos
body: Great move! Thank you!


author: Alistair.Mackay
body: [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) Here you go :-)   
<https://github.com/fireflycons/bamboo-elastic-agent-security-groups>


author: Daniel Santos
body: Hi [@Alistair.Mackay](/t5/user/viewprofilepage/user-id/3083369)

Thank you for the awesome community initiative.  
It does not matter the purpose of a given community, it will only succeed if we have people like you that take the time needed to share what they know with others.  

Have a wonderful week ahead! =\]
How to find all issues on any level under a certain feature
Asked by Inger Marie Jakobsen:

I want to create a dashboard for a specific feature, but in order to do that I need to be able to find all issues under a specific feature, regardless of their type and their depth.

Also, as a bonus, how to you query if there are no child issues on an issue? (That way I can get all end nodes).


Answers:
author: Trudy Claspill
body: Hello [@Inger Marie Jakobsen](/t5/user/viewprofilepage/user-id/4520728)

Welcome to the Atlassian community.

The tags on your post indicate you are using the Standard subscription of Jira. In that subscription the default issue type hierarchy is just three layers:

```
Epic
|-- standard level issues (i.e. Story, Task, Bug)
    |-- subtask level issues
```

So, my first question is can you please confirm that you are using the Standard subscription, and not the Premium subscription?

If you are indeed using the Standard subscription, can you confirm that your Issue Type Hierarchy is just the three default layers?

Also, when you say "Feature" do you mean that you have renamed the built in issue type Epic to be "Feature"?

comments: author: Inger Marie Jakobsen
body: Thanks,  

I cannot see the subscription data from my user, but my boss says at least premium because we have the planning module.

Above Epics, I have an issue type called Feature.

I do not know, if this is out-of-the-box-jira or just company-wide customization.

But I have at least:  
- Feature - Epic - (Story, Task, Bug) - Subtask level issues.  

And I would like to be able to list all issues under a certain feature.


author: Trudy Claspill
body: Hello [@Inger Marie Jakobsen](/t5/user/viewprofilepage/user-id/4520728)

As per this document:

<https://support.atlassian.com/jira-software-cloud/docs/search-for-advanced-roadmaps-custom-fields-in-jql/>

... you can use this JQL:

issuekey in portfolioChildIssuesOf("INIT-001")

Where INIT-001 is the issue key for the Feature. That will give you all the Epics, children of the Epics, and sub-tasks of the child issues, under the specified feature.


Tags: cloud

jira-service-management

jira-service-management-cloud

jql
Is there a way to somehow display images stored as a URL in assets - product selection
Asked by Ste404:

Hi there,

I have shoe product data that has been imported into Assets. Part of the image was a URL to an product image. I am looking at building a little shopping cart style form that either just has a static table layout that will show the images and the ability to select a quantity and 'submit' the request.  

I currently have a basic form that is 5 rows where an asset is selected, user selects the qty and and they can send that through.  

Just wanted to see if there was a way this can be more aesthetically pleasing by showing the images also.  

I think this is a big ask, but you never know.


Answers:
author: Ste404
body: Sorry I should add, I have an image showing using the !{{lookupObjects.image}}! where the image is a URL stored in Assets.  

when I run the manual automation it puts an image on the screen, but there is a 'Preview Unavailable' error and when I click on the preview I get  

Something went wrong.

We couldn't generate a preview for this file.  

It's like it's almost there but not quite.


Tags: cloud

jira-service-management

jira-service-management-cloud
Ticket Automation Using Members of a Group or Similar
Asked by Christopher Gordon:

Looking to try to setup automation to route a request to one Assignee if submitter is a member of a group or similar. If submitter not a member of the group, then automation will route request to another group of staff for processing.

Have considered creating two separate requests for the same, with one being hidden from the portal/for internal, hence the routing based on submitter. However I believe this would not be preferred for our team.

Would like to not have to manually add members to the Issue fields condition of if the submitter is or is not one of a value, value being the expected submitters from internal vs external.


Answers:
author: Christopher Gordon
body: May have found my answer using IF component in automation and comparing against Issue Field Condition of the Reporter Department. So we shall see.


Tags: cloud

jira-service-management

jira-service-management-cloud
What triggers breached()
Asked by Juan Cuevas:

Hi! I know that breached() "filters out issues whose last SLA cycle has failed to meet its target goal" but my question here is:

* If I have multiple SLAs, is breached() triggered as soon as any of the SLAs is breached?
* Doing an export, I see a couple of issues with 2 values under breached(), this means that I will get a boolean value per breached SLA?

Thank you in advance!


Answers:
author: Joseph Chung Yin
body: [@Juan Cuevas](/t5/user/viewprofilepage/user-id/5414875) -

Welcome to the community. Can you provide more clarification on your ask? Where are you doing the export?

It is my understanding the Breached condition is per each specific SLA rule that you have configured.

Please advise, so we can assist you further.

Best, Joseph Chung Yin

comments: author: Juan Cuevas
body: Hi Joseph!! Thank you for your response :)

Currently my team is exporting JIRA information into a local BD so we can use Tableau as a metric dashboard. Basically the metric we want to get is: How many tickets have breached their SLA?

Our current SLA config is as follows:

* We have several SLAs, but we have a rule where one of all of our SLAs is assigned to a ticket based on the contact reason (dropdown field) that a client selects.
* We also have a default SLA that also is automatically assigned to all tickets (time to first response)

My question here is there a way to know what SLA triggered the TRUE value for breached()?? And if a ticket has 2 values for breached(), what does it mean?

TIA


author: Joseph Chung Yin
body: Can you provide how are your team is using to export the data from JSM as an input to your local DB? (Using JSM report dashboard or via JQL?)

Best, Joseph


author: Juan Cuevas
body: Hi [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739) :)

We are using Database Exporter for Jira Cloud ([https://marketplace.atlassian.com/apps/1221074/database-exporter-for-jira-cloud?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1221074/database-exporter-for-jira-cloud?tab=overview&hosting=cloud))


author: Joseph Chung Yin
body: [@Juan Cuevas](/t5/user/viewprofilepage/user-id/5414875) -

If you are using a third party add-on for the extraction, you will need to contact the vendor of the add-on for further technical assistance on this matter - <https://appfire.atlassian.net/servicedesk/customer/portal/11/user/login?destination=portal%2F11>

Sorry I was not able to give you the solution that will fixed the problem. However, if you find my suggestions have helped you, please click on the "Accept answer" when you have a chance, so others with similar asks can see the posting properly.

Best, Joseph


Tags: cloud

jira-service-management

jira-service-management-cloud
Adding Workflow Statuses
Asked by Dawn Basch:

If i add a couple workflow statuses to a service project, how does it impact existing issues in the project? Are there any downsides to doing this?


Answers:
author: Mikael Sandberg
body: It will have no affect on existing requests. The only time changing the workflow would have any affects on existing requests would be if you removed statuses, changed conditions and/or validators.


author: Joseph Chung Yin
body: [@Dawn Basch](/t5/user/viewprofilepage/user-id/5441014) -

I agreed with what [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) stated. When new statuses are added to an existing WF, the new statuses go into effect/available from that point going forward (after you published the changes). All existing issues will not be impacted unless if you are deleting an existing status of your WF, where the system will not allowing you to remove it if there are issues at the status in question when you try to publish the same WF live for example.

Hope this also helps.

Best, Joseph Chung Yin


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there a way to get more verbose logs in Automation?
Asked by Brock Jolet:

I'd like to get better logging out of Jira Automation.

I've been getting these errors intermittently that my clone rules are unable to copy some fields, but it doesn't tell me which fields are the problem.

![Screenshot 2024-05-29 105057.png](https://community.atlassian.com/t5/image/serverpage/image-id/326709i47BF91F7C1E0A043/image-size/large?v=v2&px=999 "Screenshot 2024-05-29 105057.png")

There are other scenarios where the logging can be confusing such as when I'm running a rule with a *for each* branch and all of the data from each iteration is displayed as a single paragraph instead of a chronological sequence of events.

If there are any controls for Automation logging, please let me know where to find them.


Answers:
author: John Funk
body: Hi Brock,

That is kind of strange that it doesn't mention the fields. However, you should be able to tell easy enough which fields did not get copied to the new issue.

You need to check the context for each field that did not get copied to see if the project in the destination project is missing.


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
Exclude None option in radio button custom field
Asked by Juan Jos? Balc?zar Fern?ndez:

Helow, I would like to exclude None option inside Radio Button custom field. How can I do it? Thanks


Answers:
author: John Funk
body: Hi Juan,

To exclude the None option, you have to make the field Required in the Field Configuration attached to the project.


Tags: cloud

jira-service-management

jira-service-management-cloud
You don't have permission to create a service project
Asked by Windesign GmbH:

Dear Community,  

we get this error "You don't have permission to create a service project" migrating Halp/Assist to Jira.  

where exactly can we change these permission, already tried a lot of things.  

Thanks Pete  
![Halp.png](/t5/image/serverpage/image-id/326701iDAF430D025F0B507/image-size/large?v=v2&px=999 "Halp.png")


Answers:
author: Anusha A
body: Hi Windesign Team,

Welcome to the Atlassian Community support and Thanks for your question!

To perform this migration, you must have org admin permissions. If you are a site admin but are experiencing permission blockers with the migration tool, it may be due to recent changes in Atlassian Administration's user roles.

Just for context, this new role was [announced](https://community.atlassian.com/t5/Atlassian-Access-articles/Say-hi-to-our-new-user-access-admin-role/ba-p/1890277) last year and has been in rollout ever since. It is mentioned in the documentation too, but it would be hard to track exactly when it was rolled out on your site.

Alternatively, you can request org admin permissions or have a user with this role handle the migration.

You can review which permissions each role includes in [What are the different types of admin roles?](https://support.atlassian.com/user-management/docs/what-are-the-different-types-of-admin-roles/#What-features-are-available-to-each-admin-role-in-Atlassian-Administration)

I hope that helps resolve your current difficulty.

Regards,

Anusha A


Tags: cloud

jira-service-management

jira-service-management-cloud