Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can I export all bamboo plan's java specs in bulk or via API so I can search through Tasks?

How can I export all bamboo plan's java specs in bulk or via API so I can search through Tasks?

So yes, the general problem I am trying to solve is to be able to 'search' through Tasks (the name AND the content of, for example, Script tasks (but any type really..) for keywords. The Bamboo REST API does not seem to have any resources for getting at Tasks. I can search on stages and that gets me part of what I want, for example:


However I need to find out information on Tasks: which Tasks are named with or has script code containing keywords. 

If not via the REST API, is there something with Tasks API or Java API? Or even a SQL select query against the DB?

1 answer

0 votes
Robert W
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 09, 2020 • edited

You can export the build plans project by project using the following GET api call:{projectKey}/specs

Bamboo API Documentation - get project Specs

Once you have exported the specs from a project, you can then search through the code for a particular type of task, or keyword.

An example Script Task:

new ScriptTask()
.description("Upload to S3")
.inlineBody("#!/bin/bash\nexport AWS_ACCESS_KEY_ID=${bamboo.awsAccessKeyId}\nexport AWS_SECRET_ACCESS_KEY=${bamboo.awsSecretAccessKeyPassword}\nexport AWS_DEFAULT_REGION=us-east-1\n\n# aws s3 rm s3://<bucket-name>/path/to/file.ext\n/usr/local/bin/aws s3 cp file.ext s3://<bucket-name>/path/to/file.ext --acl public-read\n\necho \"uploaded to<bucket-name>/path/to/file.ext\""),


Hi Atlassian Team,

I am using version 6.10.3 and I have the need to export Java Specs from build plans and deployment projects. Is that possible?

What are package and format as in:


what are the possible values that I can use?

Could you please provide an example on how to export Java Specs from a build plan and from a deployment project?


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events