Duplicate an existing stream with new name but it should be unique using rtc lscm command
Hello Everyone,
I am using RTC 606.
I am trying to duplicate an TQC_Major_Stream with new name CR_test_1111 using lscm ccommand.
I used below lscm command
lscm create stream "CR_test_1111" --duplicate "TQC_Major_Stream" -r https://localhost:9443/ccm -u pallavi -P pallavi
But if I executed same command again new stream with same stream name CR_test_1111 created.
So how to restrict creating stream with same name again using lscm duplicate command and also how we can restrict to duplicate stream in particular project area.
Thanks in advance
Pallavi Deore
Accepted answer
I don't believe there is a way to restrict creation of same stream name.
You could probably write a custom precondition under "Save Stream" to achieve this behavior.
Comments
One other answer
See https://rsjazz.wordpress.com/2017/02/13/diy-stream-naming-convention-advisors/ for an advisor.
You can easily look at the roles in your project area and search for Stream to see the options you have in the permissions.
The name of the duplicated stream should be changeable. E.g. look here: https://www.ibm.com/support/knowledgecenter/SSYMRC_6.0.6.1/com.ibm.team.scm.doc/topics/set_attributes.html