It's all about the answers!

Ask a question

can i fetch the team area if given the user name/ details through CLI?


shruti gudagur (2811115) | asked Jun 02 '14, 7:37 a.m.
edited Jun 02 '14, 7:38 a.m.

can i fetch the team area to which the user belongs to, if given the user name/ details through CLI?

if yes then how can i achieve it?

my usecase is as followes,

The usecase is already getting executed with another user story. With this the major aim of the task is to fetch the team area that belongs to the user and generate a mailing list for them so that notifications could be sent from Jenkins.

Accepted answer


permanent link
Sumant Renukarya (1.1k23339) | answered Jun 02 '14, 7:45 a.m.
Hello Shruti

You can use the 'scm list teamareas' command to get the list of team areas in a repository. Please find the details and the syntax, arguments that can be used here:

http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Flist_teamareas.html


shruti gudagur selected this answer as the correct answer

Comments
shruti gudagur commented Jun 02 '14, 8:07 a.m.

Hello Sumant,

thanks for the reply.

i tried this command. It lists all the team areas present in a repository. but i want only team to which a particular user belongs to..  


Shashikant Padur commented Jun 02 '14, 10:48 p.m. | edited Jun 02 '14, 10:48 p.m.
JAZZ DEVELOPER

Use the -c/--contrib option and specify the userid.

lscm list teamarea -r https://yourRepoUrl -c userid


shruti gudagur commented Jun 04 '14, 12:01 a.m.

Hello Shashikant,

thank you. it worked.


shruti gudagur commented Jun 04 '14, 5:41 a.m.

Hello,
can i fetch all the users who belong to a particular team area through CLI?
Thanks & Regards
Shruti


Sumant Renukarya commented Jun 04 '14, 7:36 a.m.

Hi Shruti


I do not see an option or a command to list all the users belonging to a particular team area through CLI. 


There is an option to list users but no argument to filter based on team areas.


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.