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
got it: ?expand\=stages.stage.plans
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--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.