Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can a RTC stream be created and configured using the REST API.

I am looking for a method to automate the creation and configuration of RTC software release streams.  Can RTC streams be created and configured via the REST API?  If not, then can it be done via the JAVA toolkit?

0 votes


Accepted answer

Permanent link
Streams cannot be created/configured via the REST API.

You can use the plain JAVA API however to do this using this code:

	IProgressMonitor monitor = (get this from whatever background job framework you use);
	ITeamRepository repo = (the repo you want to create the stream on);
	IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);
	IProcessAreaHandle owner = (a handle to the Project Area or Team Area);
	String streamName = "My Stream Name";
	String streamDescription = "My stream description.";
IWorkspaceConnection stream = wm.createStream(owner, streamName, streamDescription, monitor);
Michael Valenta selected this answer as the correct answer

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 478
× 79

Question asked: Jun 13 '16, 9:21 a.m.

Question was seen: 3,346 times

Last updated: Mar 30 '22, 10:05 a.m.

Confirmation Cancel Confirm