Function: addActorUsers()
function addActorUsers(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
actors?: object[];
admin?: boolean;
currentUserRole?: boolean;
default?: boolean;
description?: string;
id?: number;
name?: string;
roleConfigurable?: boolean;
scope?: {
[key: string]: unknown;
project?: {
[key: string]: unknown;
avatarUrls?: {
[key: string]: unknown;
16x16?: string;
24x24?: string;
32x32?: string;
48x48?: string;
};
id?: string;
key?: string;
name?: string;
projectCategory?: {
[key: string]: unknown;
description?: string;
id?: string;
name?: string;
self?: string;
};
projectTypeKey?: | string & object
| "software"
| "service_desk"
| "business"
| "product_discovery"
| "customer_service";
self?: string;
simplified?: boolean;
};
type?: string & object | "PROJECT" | "TEMPLATE";
};
self?: string;
translatedName?: string;
}>;Defined in: src/cloud/api/projectRoleActors.ts:22
Adds actors to a project role for the project.
To replace all actors for the project, use Set actors for project role.
This operation can be accessed anonymously.
Permissions required:Administer Projects project permission for the project or Administer Jira global permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { group?: string[]; groupId?: string[]; id: number; projectIdOrKey: string; user?: string[]; } | - |
parameters.group? | string[] | The name of the group to add. This parameter cannot be used with the groupId parameter. As a group's name can change, use of groupId is recommended. |
parameters.groupId? | string[] | The ID of the group to add. This parameter cannot be used with the group parameter. |
parameters.id? | number | The ID of the project role. Use Get all project roles to get a list of project role IDs. |
parameters.projectIdOrKey? | string | The project ID or project key (case sensitive). |
parameters.user? | string[] | The user account ID of the user to add. |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; actors?: object[]; admin?: boolean; currentUserRole?: boolean; default?: boolean; description?: string; id?: number; name?: string; roleConfigurable?: boolean; scope?: { [key: string]: unknown; project?: { [key: string]: unknown; avatarUrls?: { [key: string]: unknown; 16x16?: string; 24x24?: string; 32x32?: string; 48x48?: string; }; id?: string; key?: string; name?: string; projectCategory?: { [key: string]: unknown; description?: string; id?: string; name?: string; self?: string; }; projectTypeKey?: | string & object | "software" | "service_desk" | "business" | "product_discovery" | "customer_service"; self?: string; simplified?: boolean; }; type?: string & object | "PROJECT" | "TEMPLATE"; }; self?: string; translatedName?: string; }>