Azure DevOps job level details using API or predefined variables

%3CLINGO-SUB%20id%3D%22lingo-sub-2864800%22%20slang%3D%22en-US%22%3EAzure%20DevOps%20job%20level%20details%20using%20API%20or%20predefined%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2864800%22%20slang%3D%22en-US%22%3E%3CP%3Ewe%20have%20usecase%20to%20capture%20job%20level%20details%20for%20specific%20build%20in%20the%20yaml%20pipeline%20like%20assign%20time%2C%20queue%20time%20etc%20.so%20i%20have%20got%20below%20API%20from%20one%20of%20the%20site%20.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.azure.com%2F%7Borganization%7D%2F_apis%2Fdistributedtask%2Fpools%2F%7Bpoolid%7D%2Fjobrequests%3F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.azure.com%2F%7Borganization%7D%2F_apis%2Fdistributedtask%2Fpools%2F%7Bpoolid%7D%2Fjobrequests%3F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20any%20one%20share%20us%20how%20we%20can%20add%20filter%20to%20the%20above%20API%20based%20on%20buildid%2C%20jobid%20or%20is%20there%20any%20other%20we%20can%20get%20requestid%20so%20that%20we%20can%20use%20it%20to%20filter.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

we have usecase to capture job level details for specific build in the yaml pipeline like assign time, queue time etc .so i have got below API from one of the site .

https://dev.azure.com/{organization}/_apis/distributedtask/pools/{poolid}/jobrequests?

 

can any one share us how we can add filter to the above API based on buildid, jobid or is there any other we can get requestid so that we can use it to filter.

 

 

 

0 Replies