简体   繁体   中英

How to get current release context in azure devops extension api

Is there anyway to get current release context without using releaseId on that release page? I can use ReleaseRestClient with getRelease(Id) to get the release info, but I want to know is it possible to get current page data without using releaseId? For example, in Build you can use IBuildPageDataService to get the build page data. Is there anything like IReleasePageDataService?

Is there anyway to get current release context without using releaseId on that release page?

Available Classes and Interfaces are listed in azure-devops-extension-api package . And as I know, there's no something like "IReleasePageDataService" can be used to get current release page data.

So I think you have to use ReleaseRestClient with releaseId to get the release info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM