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

What is 'id' in bamboo build result response json

Kaushik Veluru June 5, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 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
AUG Leaders

Atlassian Community Events