It's all about the answers!

Ask a question

RTC SCM : Given a Filed Against, how to get all the Streams/ Repository Workspaces


Shwetha G (265710) | asked Nov 12, 12:21 a.m.

Hi Team,


We have a usecase wherein given a filed against, it should return me all the Streams or repository workspaces part of it.

Is it possible in Query or JRS or SCM APIs.

Please assist me on this. 

Thanks in advance.

2 answers



permanent link
Ralph Schoon (63.5k33646) | answered Nov 12, 3:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

As far as I know, there is no simple relationship between a filed against and a build/stream.


permanent link
Wiesław Fartuch (261) | answered Nov 12, 8:59 a.m.

To retrieve all repository workspaces associated with a specific stream in IBM's Rational Team Concert (RTC), you can utilize the REST/OSLC APIs, although there isn't a direct API call for this purpose. Start by listing all repository workspaces using the REST API endpoint that retrieves workspaces without stream associations. This gives you a comprehensive list of workspaces to work with. Once you have the list of all repository workspaces, you will need to identify the specific stream ID you are interested in. Since there is no built-in method to query workspaces by stream, you will have to iterate through each workspace and check its properties to determine if it flows into the specified stream. This process can be somewhat cumbersome, especially if there are many workspaces involved. For those comfortable with Java, using the Java API may provide a more efficient approach, allowing for easier access to workspace properties and filtering capabilities. Alternatively, if you prefer a graphical interface, the Eclipse client offers tools like the flow diagram and pending changes view to visually inspect and manage repository workspaces associated with a stream.



Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.