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 to get job key of my BP using Bamboo REST API?

Hi Team,

I have {projectKey} and {buildKey}, is it possible to get {jobKey} of this BP using Bamboo REST API?

I found how to get the value as {projectKey}-{buildKey}-{jobKey} . But I need only jobKey.

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 06, 2022

Hello @Valerii

This jq filter will do the job:

$ curl -u admin:admin -H "Accept: application/json" -X GET \
'' \
| jq '.stages.stage | .[].plans.plan | .[].planKey | .jobKey = ( .key | split("-") | .[2])'

"key": "ABC-DFG-JOB1",
"jobKey": "JOB1"
"key": "ABC-DFG-FJ",
"jobKey": "FJ"
"key": "ABC-DFG-P4C",
"jobKey": "P4C"
"key": "ABC-DFG-HW",
"jobKey": "HW"

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events