It's all about the answers!

Ask a question

How to create a stream with cli specifying both the project and owning team?


Joseph Weigel (111) | asked Jul 18 '17, 5:00 p.m.

A customer wants to create streams via a script and would like to specify the specific project (he works with several) and the owning team.  He has run into several problems.   First of all, you can't seem to specify both --projectarea and --teamarea in the same command.  This seems to be a deficiency / limitation of the create stream syntax.  Secondly, and maybe more importantly, is that the customer wants to use the text/label method to specify the project and/or team area.  The reason this is a problem is that multiple projects have a team with the same label.  So if he specifies the project/teamarea with a label RTC may pick the wrong project / owning team.  I have suggested he has two options then, first to create the stream by specifying the owning team by a relative ID or UUID (which you will have to predetermine via a list command).  The second method would be by using two commands, first to create the stream in the correct project and then secondly using the lscm set attributes command with the --ownedby option.  It turns out that even when the owning project is known after the first command (create stream --projectarea) he still had failures when executing the second command if he uses the label. It appears that even though the team is unique in the project it was created in, RTC still looks over teams in other projects when searching via label so he had to use a relative or UUID for the owning team anyway. 

Does anyone have a better suggestion other than to open a PMR against Rational to allow setting both parameters or that the search for the owning team should be limited to the already known project? 

FYI We are using CLM 6.03 and will upgrading to 6.04 shortly.

2 answers



permanent link
Shashikant Padur (4.2k27) | answered Jul 18 '17, 11:50 p.m.
JAZZ DEVELOPER

The 'lscm set attributes' command also works in the same way as other commands which looks for team area in the repo and will fail if the name matches multiple team areas.


I don't think there is any other way to do this as of today. Please go ahead and raise a support request.


permanent link
Donald Nong (14.4k314) | answered Jul 19 '17, 12:41 a.m.

There is no need to specify the project area and the team area at the same time. If the stream will be owned by a team area, it is sufficient enough to just specify the team area. Your challenge is that you want to use the name as the identifier of a team area, which will not work as Shashikant pointed out.

Follow the below steps and see if it works out for you.
1. Use "scm list teamareas" to show the team areas, including the "-v" parameter to show the owning project areas if there are teams with same name in different project areas. If there are many project areas and team areas, use the "-c" parameter to limit the output the those containing the specified user only.
2. Run "scm create stream" to create the stream, specifying the <owner> as the team area alias (the short number) identified at the previous step.

Your answer


Register or to post your answer.