It's all about the answers!

Ask a question

Duplicate stream via Plain Java API


Ana-Maria Rosu (4810) | asked Sep 28 '21, 9:00 a.m.

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

2 answers



permanent link
Alexander Pawlik (6128) | answered Sep 28 '21, 6:19 p.m.

 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"?


Comments
1
Alexander Pawlik commented Sep 28 '21, 6:27 p.m.

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 


permanent link
Ana-Maria Rosu (4810) | answered Sep 29 '21, 3:42 a.m.

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

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.