add/remove users (resources) from tasks or requirements


Use the user-resource command to add or remove a user resource from a Requirement or Task:

The syntax for this command is:
 user-resource –p “user:pwd@host:port/project/view” [ -epwdile “pathToPasswordFile” ] –type “typeName” –id itemID -user userID [-rmv]

Parameter Description

-type describes the type name of the item to be shared. May be one of the stock type names, e,g,
changerequest, task, requirement, sprint, story, plan or any custom type name (which supports attachments)

-id can be either the unique item (view member) id of the item. View Member IDs are found by looking in the property lists of the cpc or can be queried using the select command, OR, the primary descriptor of the item; e.g. changerequest, task or requirement number.

-userID Can be either the unique integer userID of the User, or the case sensitive User Full Name, or the User Logon Name
Note that if the user logon name is specified, then the command must be run by an Administrator.

-rmv if specified, remove the user

Note that is the user already exists as a resource/responsibility for this item, the command does nothing.

Note also that User resources associated with a specific Task or Requirement may be queried using the select command. the syntax is

select user-resources from task where viewmemberid = nnn -p "user:pwd@host:port/project/view"


How To-Best Practice
Comment List
Related Discussions