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

How to retrieve job names via bamboo api

Beyer, Simon
Contributor
August 28, 2023

Im struggeling with getting the acutal job names via bamboo (server) api.

with curl --request GET --url 'http://{baseurl}/rest/api/latest/result/{projectKey}-{buildKey}/{buildNumber}' --header 'Accept: application/json' I can dig down to stages, but I am not able to retrieve the name of the included jobs. I already read through the api documentation

1 answer

1 accepted

2 votes
Answer accepted
Beyer, Simon
Contributor
August 28, 2023

got it: ?expand\=stages.stage.plans

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2023

Hi @Beyer, Simon

You can use ?expand=plan.stages.stage.plans.plan as an expand flag like this:

'https://{bambooUrl}/rest/api/latest/result/{projectKey}-{buildKey}/{buildNumber}?expand=plan.stages.stage.plans.plan'

This is a bit more detailed than simply "stages.stage.plans", but you can use that if it works for you too.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

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

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events