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

Duplicate stream via Plain Java API

Hello everyone,


Is it possible to duplicate a stream using Plain Java API?
I need to create a new stream with the same folder structure as another one. 
I first tried to take the changesets from the source stream and somehow deliver them to the target stream but I could not make it work.
Then, I saw that you can duplicate one stream in the Jazz web interface, but could not find how to do it via Plain API. I only found a question from 3 years ago about this which has no answer:
I was wondering maybe someone has an update about this.

Thank you,
Ana

0 votes



2 answers

Permanent link

 Ana-Maria Rosu,

I'm right now working on such a solution which will give you the possibility to "clone" a stream into another one. It will take some time - but end of October it should be ready. It will do a little bit more than just cloning - so stay tuned.


Is this feasible for you to wait a little bit or do you need a "fast solution"?

1 vote

Comments

Ana-Maria,


If you need a fast solution:

Create a new stream via API
Get the old stream - iterate through all components in the stream - add these components to the newly created stream. 

That´s a very simple solution 

1 vote


Permanent link

Hello Alexander,



Thank you for your response!
At first, I will try adding the components one by one as you suggested.
When your solution is available, please let me know; I would like to check it out as well.

Regards, 
Ana

0 votes

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
× 10,938

Question asked: Sep 28 '21, 9:00 a.m.

Question was seen: 1,142 times

Last updated: Sep 29 '21, 3:42 a.m.

Confirmation Cancel Confirm