Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

add/remove users (resources) from tasks or requirements

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:

Syntax
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"

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2016-11-07 16:13
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.