Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,244
Community Members
 
Community Events
165
Community Groups

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 on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

908 views 3 8
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