Rest API find projects by VCS settings root

Answered

Hi,

is there some more detailed documentation regarding locators?

Alternatively is it possible to somehow find Projects that use a certain VCS root for Versioned settings? Given we have VCS root ID or Url

I've found this information in ProjectFeatures.ProjectFeature.properties in project's details, but I don't know how to construct a query for this

Thank you

2 comments
Comment actions Permalink

Hello Jiri,

You could use the following endpoint:

/app/rest/projects/projectFeature:(type:versionedSettings,property:(name:rootId,value:<vcsRootID>))

Just checked it to return the relevant projects basing on the VCS root ID (alternatively, you may amend property locator part to use other VCS root parameters). Please let me know if this solution works for you.

 

0
Comment actions Permalink

Looks like it works, thank you!

0

Please sign in to leave a comment.