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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.