REST / OSLC - How to find the Repository Workspaces for a stream?
CLM 4.0.7
I need to be able to list the repository workspaces flowing to a stream. I can list streams via the REST query https://server:port/ccm/rpt/repository/scm?fields=scm/workspace[stream='true']/*/* and list repository workspaces from https://server:port/ccm/rpt/repository/scm?fields=scm/workspace[stream='false']/*/* but I can't see how to list the repo workspaces for a given stream.
It would also be useful to be able to list all the repository workspaces for a user, but I can't work out the syntax for that query either.
Can anybody help?
Accepted answer
There is no 1 to N relationship between streams and repository workspace. There is a M:N relationship, where M,N a positive natural number or 0.
Given that, I assume you would have to iterate all repository workspaces and check if they have a flow target identical with the stream.
It is likely doable with the Java API. I don't know the REST/OSLC API enough to talk about that.
Given that, I assume you would have to iterate all repository workspaces and check if they have a flow target identical with the stream.
It is likely doable with the Java API. I don't know the REST/OSLC API enough to talk about that.