It's all about the answers!

Ask a question

API to Add Component to Stream


Stef Wolff (135) | 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 (63.5k33646) | 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.


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.