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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What is 'id' in bamboo build result response json

I did a get request to get the build result. In the response json, there is 'id'. What's that value for?

 

GET request: https://bamboo.air.com/rest/api/latest/result/ACP-CIT7506.json?expand=results

I have marked the id in Bold. 

Response:

 

"master": {
"shortName": "Integration Tests",
"shortKey": "CIT",
"type": "chain",
"enabled": true,
"link": {
"href": "https://bamboo.air.com/rest/api/latest/plan/ACP-CIT",
"rel": "self"
},
"key": "ACP-CIT",
"name": "Integration Tests",
"planKey": {
"key": "ACP-CIT"
}
},
"buildResultKey": "ACP-CIT7506-1",
"lifeCycleState": "Finished",
"id": 493805106,
"key": "ACP-CIT7506-1",
"planResultKey": {
"key": "ACP-CIT7506-1",
"entityKey": {
"key": "ACP-CIT7506"
},
"resultNumber": 1
},
"state": "Failed",
"buildState": "Failed",
"number": 1,
"buildNumber": 1
}

 

1 answer

1 accepted

1 vote
Answer accepted
Jeremy Owen Atlassian Team Aug 07, 2018

It's the buildresultsummary_id (PK) of the build result row from the table BUILDRESULTSUMMARY in the Bamboo database.

It's really only useful for those who want to explore the underlying data since other REST API operations take the build result key as opposed to ID.

E.g.

SELECT * FROM BUILDRESULTSUMMARY WHERE BUILDRESULTSUMMARY_ID = '493805106';

Hope this helps. :) 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program 2

We’re preparing for Bamboo 8.0, which will be our first Data Center release. To make sure our app vendors and customers with written in-house apps are prepared, we’re launching Bamboo 8.0 Early Acces...

75 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you