It's all about the answers!

Ask a question

API to Add Component to Stream


Stef Wolff (132) | asked Jul 26 '18, 10:57 a.m.

Hi,

I want to Add a Component to a main Stream.

We only have one main Stream called MAIN (Project Area IVP)

 

My problem is that I have a main Stream called "MAIN" with project area "IVP" and also one called "MAIN" with project Area 'Test".  If I want to Add component 'X' to main Stream "MAIN" with project area "IVP" using a java API

it adds component 'X' to main Stream "MAIN" with project area "Test"

Can anyone help me ?

Thanks

Stef

Accepted answer


permanent link
Ralph Schoon (54.8k23641) | answered Jul 27 '18, 2:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I think the best advice to give here is a naming convention.

Other than that, you will likely have to figure out a difference that you can use to decide which stream is which. For example you could try to figure out who the owner of the stream is, or its privacy settings. See
com.ibm.team.scm.client.IFlowNodeConnection.getOwner() and com.ibm.team.scm.client.IWorkspaceConnection.getReadScope()

Stef Wolff selected this answer as the correct answer

Your answer


Register or to post your answer.