jira.js
    Preparing search index...

    Function getProjectRoleDetails

    • Returns all project roles and the details for each role. Note that the list of project roles is common to all projects.

      This operation can be accessed anonymously.

      Permissions required: Administer Jira global permission or Administer projects project permission for the project.

      Parameters

      • client: Client
      • parameters: {
            currentMember?: boolean;
            excludeConnectAddons?: boolean;
            excludeOtherServiceRoles?: boolean;
            projectIdOrKey: string;
        }
        • OptionalcurrentMember?: boolean

          Whether the roles should be filtered to include only those the user is assigned to.

        • OptionalexcludeConnectAddons?: boolean
        • OptionalexcludeOtherServiceRoles?: boolean

          Do not return the default JSM company-managed space from CSM spaces, or the default CSM roles from JSM spaces.

        • projectIdOrKey: string

          The project ID or project key (case sensitive).

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              admin?: boolean;
              default?: boolean;
              description?: string;
              id?: number;
              name?: string;
              roleConfigurable?: boolean;
              scope?: {
                  project?: {
                      avatarUrls?: {
                          "16x16"?: string;
                          "24x24"?: string;
                          "32x32"?: string;
                          "48x48"?: string;
                          [key: string]: unknown;
                      };
                      id?: string;
                      key?: string;
                      name?: string;
                      projectCategory?: {
                          description?: string;
                          id?: string;
                          name?: string;
                          self?: string;
                          [key: string]: unknown;
                      };
                      projectTypeKey?: | string & {}
                      | "software"
                      | "service_desk"
                      | "business"
                      | "product_discovery"
                      | "customer_service";
                      self?: string;
                      simplified?: boolean;
                      [key: string]: unknown;
                  };
                  type?: string & {}
                  | "PROJECT"
                  | "TEMPLATE";
                  [key: string]: unknown;
              };
              self?: string;
              translatedName?: string;
              type?: string & {}
              | "DEFAULT"
              | "GUEST_ROLE"
              | "AI_AGENT_ROLE";
              [key: string]: unknown;
          }[],
      >