Hello @Valerii
There is no REST API that would provide you with the linked Build on a running agent. You can alternatively use SQL to extract that information.
Here's a KB article that provides a very nice SQL and brings Agent reports. You will need to customise it to match your specific Agent.
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Thank you for help @Eduardo Alvarenga, but it is not my way. I would like to use only REST API as a part of my script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.