jira.js
    Preparing search index...

    Function getPermissions

    • Returns all permissions in the system and whether the currently logged in user has them. You can optionally provide a specific context to get permissions for (projectKey OR projectId OR issueKey OR issueId)

      Parameters

      • client: Client
      • Optionalparameters: { issueId?: string; issueKey?: string; projectId?: string; projectKey?: string }
        • OptionalissueId?: string

          Id of the issue to scope returned permissions for.

        • OptionalissueKey?: string

          Key of the issue to scope returned permissions for.

        • OptionalprojectId?: string

          Id of project to scope returned permissions for.

        • OptionalprojectKey?: string

          Key of project to scope returned permissions for.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              permissions?: Record<
                  string,
                  {
                      description?: string;
                      id?: string;
                      key?: string;
                      name?: string;
                      type?: string & {}
                      | "PROJECT"
                      | "GLOBAL";
                      [key: string]: unknown;
                  },
              >;
              [key: string]: unknown;
          },
      >