The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
TAGS
AUG Leaders

Atlassian Community Events