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

How to receive required Capability of a plan via the API

Tim Kopplow March 26, 2024

Howdy, i'm currently trying to build a little tool that get's plan info from the queue.json?expand=queuedBuilds endpoint. I then want to detect the required capabilities of a queued plan. 

When looking through https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-group-api i don't really find anything that would tie a plan to its dependencies / needed agent capabilities.

 Thanks in advance, for any help :) 

1 answer

1 accepted

2 votes
Answer accepted
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2024

Hello Tim,

Welcome to Atlassian community.

As far as I am aware I don't think so we have a REST API to display the requirement of a queued Job to the Capabilities of the agent.

The best available API end point of queued Jobs is below and you can use couple of expands to get more details of the queued Job, but it does not show it's requirements.

curl -k -u user_id:password \
-H 'Content-type: application/json' \
-H 'Accept: application/json' \
-X GET http://bamboo921:8085/rest/api/latest/queue?expand=queuedBuilds

Details here 

However this information can be fetched via SQL queries, let me know if you are interested in that and I'll try to get that for you. 

Regards,

Shashank Kumar

*please don't forget to Accept the answer if your query was answered**

 

Tim Kopplow March 27, 2024

That's a bummer. I'll think about the SQL variant or just discard my tool idea. Thanks! 

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events