jira.js
    Preparing search index...

    Function setActors

    • Updates a project role to include the specified actors (users or groups). Can be also used to clear roles to not include any users or groups. For user actors, their usernames should be used.

      Parameters

      • client: Client
      • parameters: {
            body: {
                categorisedActors?: Record<string, string[]>;
                id?: number;
                [key: string]: unknown;
            };
            id: number;
            projectIdOrKey: string;
        }
        • body: {
              categorisedActors?: Record<string, string[]>;
              id?: number;
              [key: string]: unknown;
          }
        • id: number

          The project role id

        • projectIdOrKey: string

          The project id or project key

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              actors?: { avatarUrl?: string; name?: string; [key: string]: unknown }[];
              description?: string;
              id?: number;
              name?: string;
              self?: string;
              [key: string]: unknown;
          },
      >