youngmon/atlassian-qna huggingface dataset:
Active Trello board Report
Asked by Krishnamoorthy Bhat:

I have approximately 700 deals trello created but would like to know out of 700 Trello how many trello boards are actively used


Answers:
author: Oliver S
body: Hi Krishnamoorthy, welcome to the community! :)

While we don't have this feature natively available in Trello, you can query this information using our API. Specifically, you'll be looking to GET the board's **dateLastActivity**.

We have a getting started guide here: <https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/>

As an example, you could use a query like this to Get dateLastActivity for all boards in a Workspace, sorted by most recently updated:

[https://api.trello.com/1/organizations/:workspaceID/boards?key=...\&token=...\&fields=dateLastActivity\&sortBy=dateLastActivity\&sortOrder=descending](https://api.trello.com/1/organizations/:workspaceID/boards?key=...&token=...&fields=dateLastActivity&sortBy=dateLastActivity&sortOrder=descending)

Where key and token would be replaced with your unique tokens. :)

Hope this helps as a starting point!
Board button not functioning on one specific board
Asked by PeterD:

In order to remove lists from a board (which should actually be a standard functionality) this workaround was settled on:  
<https://community.atlassian.com/t5/Trello-questions/Looking-for-simple-Deleting-Lists-workaround/qaq-p/2361227>  

<br />

Rename a list to done;  
Create a board button to move all lists with the name done to Delete Board.   
From there I can move them to a board that I cab delete all together. A very complicated process in order to delete lists.  
On one of my boards, the move button simply will not work. Created a new one, still no success On other boards, the same button still works.  

Running "Done and Delete" on board "IJC/HD"  
> Something went wrong and this action was not performed. Actions with errors are retried automatically by the system.
>
> *** ** * ** ***
>
> Error reference: 59d4be965e9f27faa6680ebd-1699612355192


Answers:
author: Cody C.
body: Hey Peter! I like the looks of that Workaround, and I agree it would be a useful feature to have baked-in.

I'm seeing an error when I look up that error reference, but I think it might be best to discuss in a ticket. Could I trouble you to open one through trello.com/contact and we can investigate further?

In the interim, if you try manually moving that list to a new board, do you see the same error? Depending on the answer, that would implicate either 1) the automation or 2) the list or board itself.
Bamboo-Bitbucket Debugging
Asked by Paul Dennis:

Hello Everyone,

Can someone tell me what classes to set for debugging the stash in Bamboo?

Thanks,

Paul


Answers:
author: robhit
body: Hi Paul,

Thanks for your question!

You could try the below classes:

```
DEBUG com.atlassian.bamboo.plugins.stash.events
```

```
ALL com.atlassian.bamboo.plugin.stash.remote.event.listener
```

```
DEBUG com.atlassian.bamboo.plugin.stash.remote.event.status

```

Hope you already know how to set things. Sharing below just in case:

<https://confluence.atlassian.com/bamboo/logging-in-bamboo-289277239.html>

Btw, it would be good if you could tell what sort of debugging you are looking for?

Thanks,

Robhit
Bamboo REST API: how to get testId?
Asked by Robert Kulyassa:

Hi everyone,  

I try to quarantine/resume tests on the REST API what works fine, except I can not get the testids anywhere (what is required by the quarantine call).

The

### [/plan/{projectKey}-{buildKey}/test/{testId}/quarantine](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e1747 "Bamboo rest API doc") {#toc-hId-1596941117}

call needs the testId what I don't find anywhere else in the documentation. I could quarantine some test by checking the web interface in a browser, where the testID is part of the URL. That way obviously can't work in a script...

The most what I could have on the REST interface is the list of a quarantined job by the:

### [/result/{projectKey}-{buildKey}-{buildNumber : (\[0-9\]+)\|(latest)}?expand=testResults.quarantinedTests](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e681 "Bamboo rest API doc") {#toc-hId--955215844}

but this gives back the test list with class and method names, no testId.  

Is it a bug, a missing feature or am I looking at the wrong place?


Answers:
author: rsperafico
body: Hello [@Robert Kulyassa](/t5/user/viewprofilepage/user-id/592634),

Thank you for your inquire.

Please, notice the endpoint [/plan/{projectKey}-{buildKey}/test/{testId}/quarantine](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e1747 "Bamboo rest API doc") is not currently available in <https://docs.atlassian.com/atlassian-bamboo/REST/6.4.1/>, meaning it is used as an internal call.

Reviewing your inquire, I also agree Bamboo should provide a way to expose testId so it could be consumed in different scenario(s). For this reason, please find below a feature request raised:

<https://jira.atlassian.com/browse/BAM-19816>

I would encourage you leaving a comment to the link above, as well as voting and becoming a watcher so you can receive latest updates.

Kind regards,

Rafael

comments: author: Robert Kulyassa
body: Thx for the comment (and the ticket), so it's even worse, now I started to miss the /quarantine call as well...


Tags: rest

rest-api
How to use Bamboo Variables in the linux session on the machine?
Asked by Edward Snowden:

I wan to make use of bamboo Variables in the shell script available on my Linux Server where Bamboo is hosted. I have tried using ${bamboo.build.working.directory} but this doesn't works.

Any help is greatly appreciated.

Thanks,

Edward


Answers:
author: robhit
body: Hi Edward,

Thanks for your question!

Try using this - ${bamboo_build_working_directory}

Explanation - When you want to use the Bamboo Variables in the session we have to replace the "." with "_"

So ${bamboo.build.working.directory} -- Will be replaced with ==\> ${bamboo_build_working_directory}

Hope this will help.

Thanks,  
Robhit

comments: author: Edward Snowden
body: Yes, It works. Thanks!


author: Robert Kulyassa
body: You can list all the available shell variables by the "set" command. The bamboo variables start with the word "bamboo" so you can filter them:

```
set | grep ^bamboo
```
Bamboo variable incrementer task if plan fails
Asked by Arpan Mehetre:

We have 3 tasks - where second task is of type **Variable Version Incrementer** and then it shares the incremented value with the last task.

Issue is, if last task fails still the version variable value is incremented.

I want help in finding a way where if any of the tasks, after the version increment task, fails then the version variable should retrieve its last value.


Answers:
author: Minh Tran
body: [@Arpan Mehetre](/t5/user/viewprofilepage/user-id/556863) I suggest you separate your plan into 2 stages:

* First stage: this job will include 3 of your tasks and the 2nd task is of type **Variable Version Incrementer.** An import thing for 2nd task is the **local** scope
* Second stage: this job will contain only 1 task with type **Variable Version Incrementer** . This is configured the same as 2nd task but the **global** scope

With this configuration, when the task 3 failed, the version is still kept with the last value

I hope this helps you


Tags: bamboo-development

version
Additional file msbuild.exe command line
Asked by bng:

I need to add an additional file to a msbuild process.

Is it possible to add an command line argument in the MSBuild configuration options in Bamboo , which takes another csproj file?


Answers:
author: Minh Tran
body: [@bng](/t5/user/viewprofilepage/user-id/1206454) Yes you can define multiple tasks in the same job for that purpose

* The first task is to check out the repository that contains the csproj file you want to pass to **msbuild.exe**
* The second task is to the script task, you can run the msbuild.exe from the the above checkout folder with the argument pointing to the relative path of csproj file

I hope this helps you

comments: author: bng
body: Thank you for your answer!

My Problem is that i have two csproj files for one Visual Studio project.

In the first task i need the first one and in the second task i need the other one.

Do you have an example of such an argument?


author: Minh Tran
body: [@bng](/t5/user/viewprofilepage/user-id/1206454) you can check it out this link for an example <https://stackoverflow.com/questions/5174893/how-does-one-build-a-csproj-from-command-line-having-a-log-written-to-a-specifi>


Tags: ms-build
Bamboo Slack
Asked by Edward Snowden:

Hi,

I am new to Bamboo, Atlassian Products actually. I was trying to link Slack with my bamboo instance. But I am hitting a lot of issues. Was wondering if someone has already used slack to guide me here.

Thanks


Answers:
author: robhit
body: Hi Edward,

Thanks for your question!

You can use the below document. I believe it will help you for sure:

<https://confluence.atlassian.com/bamkb/using-slack-for-bamboo-notifications-940217744.html>

Thanks,

Robhit

comments: author: Edward Snowden
body: Wow! that was very quick.

Great Support!

I have more questions on Bamboo and other products like Bitbucket. Should I ask here or a new question?

Sorry, I am new to Atlassian Suite. Please excuse me.

Thanks again.


author: Steffen Opel _Utoolity_
body: [@Edward Snowden](/t5/user/viewprofilepage/user-id/1206154) - it is highly recommended to ask a separate question for anything that's not directly related to your first one, because this will provide a considerably higher chance of attracting a competent answer and also helps a lot to keep this community well organized and easily searchable (for example, I've just added the 'slack' tag, which likely won't apply to your other questions).


author: Steffen Opel _Utoolity_
body: Besides the built-in [Bamboo integration with Slack via XMPP](https://confluence.atlassian.com/bamkb/using-slack-for-bamboo-notifications-940217744.html) mentioned by [@robhit](/t5/user/viewprofilepage/user-id/1132242) already (+1), you might also be interested in the free [Slack Notifications for Bamboo](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.bamboo-slack/server/overview) app that seems to get the job done for a lot of users (judging by the installation count, I'm not using it myself).


Tags: slack
Incorrect revision while building a branch using plan branches
Asked by Alex Koshulian:

Hi!

I have the following scheme of the SVN repository:

https://some_repo/svn/trunk

https://some_repo/svn/branches

I try to use plan branches according to the guide: <https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html>

While building a branch, I found that Bamboo uses the last committed revision for the whole repo (i.e. https://some_repo/svn/) instead of the last revision for the current branch. This revision may have been committed to another branch or trunk. Thus, all bamboo variables are set to the incorrect revision number, and I have not got any clue how to overcome this issue. I actually need the correct revision of the branch being built for the following use in custom build scripts. There is no way to use svn commands because I use source export instead of checkout.

Thanks in advance.


Answers:
author: Foong
body: Bamboo does not show branch/tag revision for Subversion repository.

Please vote for the following feature requests:

<https://jira.atlassian.com/browse/BAM-10396>

<https://jira.atlassian.com/browse/BAM-4800>

comments: author: Alex Koshulian
body: Thank you! This is the cause of the problem.


author: Minh Tran
body: [@Alex Koshulian](/t5/user/viewprofilepage/user-id/1206007)Can you tell me how you configure your linked repository to your svn?

You should not use bamboo variables to point to revision number. Revision number should be picked up from the linked repository configuring with a branch and it should be the latest one.

Bamboo should support for that out of the box

When you have this one you can write the revision to a temporary file and that can be read from the next custom build script task

comments: author: Alex Koshulian
body: Thank you for your reply!

I try to use that bamboo variable for the internal purposes. For example, to include a revision number into artifact file name as well as build number.

The structure of the SVN repository is the following:

https://some_repo/svn/trunk

https://some_repo/svn/branches/branch1

https://some_repo/svn/branches/branch2

....

etc.

The https://some_repo/svn/trunk URL is added on the Repositories tab in the Bamboo plan configuration. If I need to add a new branch, I use the Branches tab. Thus, a single plan may build the trunk as well as any of the branches available. However, I observe the above mentioned problem with bamboo.planRepository.\<position\>.revision variable, viz. this variable in the build of branch 1 may take a value of the revision committed to any other branch or even trunk and vice versa....

I did not configured any linked repositories.


author: Minh Tran
body: Linked repository should support you to run against different branches. You don't need to manually do like that :)


author: Alex Koshulian
body: Thanks, but I do not understand at all how it can resolve the problem with revision set in the bamboo variable, whether they're gonna be correct with linked repository?
Docker Runner Host Networking and Docker Socket
Asked by Eric Parton:

Hello,

I'm still on an older version of Bamboo, but I'm interested in the new docker runner feature in Bamboo 6.4.

Is it possible for the docker container that the docker runner uses to run with host networking enabled? Also, is it possible to interact with the docker daemon on the host while inside the container (for starting other test containers, etc)?

Thanks,

Eric


Answers:
author: Jeremy Owen
body: Hey Eric,

Absolutely! In-fact, with the current implementation of Docker Runner all containers run with host networking enabled with no additional configuration required.

It also supports volume mounting from host to container, so it's possible to interact with the Docker Daemon on the host by mounting the Docker socket. There's a configuration that ends up passing the equivalent of the below during the Docker run command:

```
--volume /var/run/docker.sock:/var/run/docker.sock
```

Hope this helps. :)

comments: author: Eric Parton
body: Thanks! That's exactly what I was looking for


Tags: docker
Is there a way that i can get notified when my bamboo remote build agents goes offline ?
Asked by Murali D:

I want to get notified when my remote agent goes down. Is there any way to do that ? Any help will be appreciated.


Answers:
author: Alexey Chystoprudov
body: Try <https://marketplace.atlassian.com/plugins/com.atlassianlab.bamboo.plugins.bamboo-agent-notification-plugin/server/overview>

And watch and vote at <https://jira.atlassian.com/browse/BAM-2489>


author: Ken Wood
body: I used the REST API to check status of all agents, and send me an email if the agent is offline.


author: rsperafico
body: Hello [@Anand Daparthi](/t5/user/viewprofilepage/user-id/1206190),

Perhaps you should be considering configuring the remote agent to reconect to Bamboo server once the communication is lost/broken by following [Remote agent does not restart after server outage](https://confluence.atlassian.com/bamkb/remote-agent-does-not-restart-after-server-outage-213059795.html "Remote agent does not restart after server outage")

Regarding on notification, as my colleague mentioned, Bamboo does not offer this feature out of the box. With that said, you could:

* <https://jira.atlassian.com/browse/BAM-11127>, comment on this feature request adding the nofitication you are looking for, as well as voting and becoming a watcher, so you can review latest updates AND/OR;
* you could build your own plugin by following [Building a Notification plugin](https://developer.atlassian.com/server/bamboo/building-a-notification-plugin/ "Building a Notification plugin")

Kind regards,

Rafael


author: Jeyanthan I
body: Bamboo doesn't have a feature to notify users when an agent goes offline. You can configure a cron job to check the service status periodically and make it restart if it went down. This can be extended to send a notification based on that.

I was thinking of another way by utilizing Bamboo's default feature, but not precisely based off when the agent is offline.

What we can do is [configure requirements for build plans](https://confluence.atlassian.com/bamboo/configuring-a-job-s-requirements-289277064.html) and configure the [Job Queued Without Capable Agents](https://confluence.atlassian.com/bamboo/configuring-notifications-for-a-plan-and-its-jobs-289276973.html#Configuringnotificationsforaplananditsjobs-Notificationevents) notification. With this, any build that is queued that has a requirement, but isn't matched by any online remote agent, Bamboo will send a notification.

Hope that helps.
Bamboo Specs - java, create plan branch
Asked by Tom Adamo:

Is there a way to create a plan branch with the java spec api?

I don't see any examples here:

<https://docs.atlassian.com/bamboo-specs-docs/6.4.0/specs-java.html>

And I can't find anything here:

<https://docs.atlassian.com/bamboo-specs/6.4.1/?_ga=2.194413293.1722865494.1522673805-876250858.1520866475>


Answers:
author: rsperafico
body: Hello [@Tom Adamo](/t5/user/viewprofilepage/user-id/609753),

Please, refer to "Manual branch management" under <https://docs.atlassian.com/bamboo-specs-docs/6.4.0/specs-java.html#automatic-branch-management>

Kind regards,

Rafael

comments: author: Eric Pederson
body: This is creating separate plans for each branch, not plan branches, no?


author: Minh Tran
body: Or you can refer "Automatic branch management" part the <https://docs.atlassian.com/bamboo-specs-docs/6.4.0/specs-java.html#automatic-branch-management>

Here is one example

    Plan plan = new Plan(project, planName, planKey)    .planRepositories(new GitRepository()        .name("my-repo")        .url("ssh://git@bitbucket.org:my-company/my-repo.git")        .branch("master"))    .planBranchManagement(new PlanBranchManagement()        .createForVcsBranchMatching("^JIRA-[0-9]+")        .triggerBuildsLikeParentPlan());?

Feel free to ping me if you have other questions

comments: author: Tom Adamo
body: Thanks.

I want to get them created, not configure the settings. This part (sort-of) answered my question: <https://docs.atlassian.com/bamboo-specs-docs/6.4.0/specs-java.html#manual-branch-management>


author: Minh Tran
body: [@Tom Adamo](/t5/user/viewprofilepage/user-id/609753) Not really. The above code registers the plan to a specific branch pattern "\^JIRA-\[0-9\]+", when a new branch matching that pattern is created, a branch in Bamboo is created for it. That is how it work.

Unless you want to create your branch in Bamboo manually when your branch in SCM is created everytime, then this is not what you want


author: Tom Adamo
body: I already have a repo with existing branches. So, I don't want to just configure the branch management. I want to actually create a plan branch from a script.

Your example will configure the plan to wait until a repo branch (JIRA-1) is created, then it will create the corresponding plan branch. But, I already have the repo branch (JIRA-1) created and I don't want to have to go into the UI and create the plan branch manually.


author: Wojciech Gaudnik
body: I'm trying to figure out exactly the same, did you solved it ?
How to run a plan after two different plans are built successfully?
Asked by sintoanto:

I have three different plans namely A,B and C

A - runs on Agent a

B - runs on Agent b

C - runs on Agent a

I want plan C to run only when A and B are successful. How will I do it?


Answers:
author: Jeyanthan I
body: Hi Sino,

This is definitely possible with the help of [Dependency blocking strategy](https://confluence.atlassian.com/bamboo/dependency-blocking-strategies-289276893.html). This ensures that a "tree" of dependent builds always runs in tree hierarchy order, even if child plan builds are triggered independently of their parents.

All you need to do is to set Plan A and Plan B as a parent of Plan C and enable **Block build if parent builds are queued or in progress** under Plan C's *Configure plan -\>* *Dependency blocking strategy* . This way, the child plan gets executed only upon successful execution of the parent plan. The Plan C will not be executed if one of the parent plans have a failed build.

Hope that helps!

comments: author: Minh Tran
body: Right, it sounds the right way

All we need is to set Plan C as child plan for Plan A and for plan B

<https://confluence.atlassian.com/bamboo/setting-up-plan-build-dependencies-289276887.html>


author: Minh Tran
body: [@sintoanto](/t5/user/viewprofilepage/user-id/1205197) as far as i know, you can only trigger one plan

Let 's say plan A runs finish, it can trigger plan B as a child plan (you can define this in Dependency tab)


author: robhit
body: Hi Sino,

Thanks for your question!

I don't think that's functionally possible to achieve in Bamboo unless you want to script it somehow.

Thanks,

Robhit
Need to extract Perforce changelists information from Bamboo
Asked by Gregory Kremer:

We need to extract information on all Perforce changelists in Bamboo. Atlassian Tech Support advised us that there is no such out-of-the-box feature exists. Has anyone done such report? I'd greatly appreciate any help/suggestion.


Answers:
author: robhit
body: Hi Gregory,

Thanks for your question!

Let me know if the below query helps you go fetch the required result:

    SELECT    d.title AS 'Project Name',    c.title AS 'Build Plan Name',    c.full_key AS 'Plan Full Key',    CASE        WHEN c.build_type = 'CHAIN_BRANCH' THEN 'Branch Plan'        ELSE 'Main Plan'    END AS 'Plan Type',    a.build_state,    c.UPDATED_DATE AS 'build_updated_date',    a.build_number,    e.COMMIT_FILE_NAME,    g.CHANGESET_ID AS 'CHANGESET',    f.COMMIT_DATE,    f.COMMIT_COMMENT_CLOB AS 'Commit_Comment',    CASE        WHEN h.LINKED_USER_NAME IS NULL THEN 'Author is not linked with a user in Bamboo'        ELSE h.LINKED_USER_NAME    END AS 'Linked_Author_Name',    h.AUTHOR_NAME,    h.AUTHOR_EMAILFROM    buildresultsummary a,    build c,    project d,    commit_files e,    user_commit f,    repository_changeset g,    author hWHERE    c.build_type IN ('CHAIN' , 'CHAIN_BRANCH')        AND c.full_key = a.build_key        AND c.project_id = d.project_id        AND e.commit_id = f.commit_id        AND f.REPOSITORY_CHANGESET_ID = g.REPOSITORY_CHANGESET_ID        AND f.COMMIT_REVISION = g.CHANGESET_ID        AND g.BUILDRESULTSUMMARY_ID = a.BUILDRESULTSUMMARY_ID        AND h.AUTHOR_ID = f.AUTHOR_IDORDER BY d.title , c.full_key , build_updated_date DESC;

Thanks,

Robhit

comments: author: Gregory Kremer
body: Robhit,

Thank you for your suggestion. Unfortunately it is not what I needed.