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

How to change ownership of component with LSCM

 Hi! 


When using "lscm create component" the ownership of the component is set to the user id creating the component. I need to change the owner of the component to the project the component is in. How can I achieve this? 

Regards, 
David

0 votes



One answer

Permanent link

scm set attributes -C/--component <arg ...> [--name <arg>] ([--ownedby <arg>]
                   [--teamarea-scope] [--visibility <arg>]) [--process-area
                   <arg> | --accessgroup <arg>] [-r/--repository-uri <arg>]
                   [-u/--username <arg> -P/--password <arg> | -u/--username
                   <arg> --password-file <arg> | --certificate <arg>
                   -P/--password <arg> | --smartCard -u/--username <arg> |

                   --kerberos | --integratedWindows]

If you are setting the owner of a component to a team area, you would have to run the following command:
scm set attributes -C <component_itemId_or_name> --visibility <teamarea> --process-area <teamarea_itemid_or_name>
--visibility option values could be any of the following: public, private, teamarea, projectarea, accessgroup, or archived.
For help, run 'scm help set attr'.

0 votes

Comments

I went through the docs once again and figured that --visibility is not the correct option. However, --ownedby is what I was looking for. I want to set the owner to be the proect area but this doesn't seem to work.

lscm set attributes --component <component_uuid> --ownedby <project_area_name> --visibility <project_area_name> -r <repository>
When I run this command the visibility is set to project scoped but the owner remains the user and not the project area. What am I doing wrong?

You are right, that is to change the visibility.
To change the owner you just need to do the following:
lscm set attributes --component <component_uuid> --ownedby <project_area_name> -r <repository>

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
× 12,014
× 158

Question asked: May 17 '19, 1:16 p.m.

Question was seen: 2,499 times

Last updated: May 21 '19, 12:21 a.m.

Confirmation Cancel Confirm