jira.js
    Preparing search index...

    Function createStatuses

    • Creates statuses for a global or project scope.

      Permissions required:

      Parameters

      • client: Client
      • parameters: {
            scope: {
                project?: { id: string; [key: string]: unknown };
                type: string & {} | "PROJECT" | "GLOBAL";
                [key: string]: unknown;
            };
            statuses: {
                description?: string;
                name: string;
                statusCategory: string & {}
                | "TODO"
                | "IN_PROGRESS"
                | "DONE";
                [key: string]: unknown;
            }[];
        }
        • scope: {
              project?: { id: string; [key: string]: unknown };
              type: string & {} | "PROJECT" | "GLOBAL";
              [key: string]: unknown;
          }
          • Optionalproject?: { id: string; [key: string]: unknown }
            • id: string

              The ID of the project.

          • type: string & {} | "PROJECT" | "GLOBAL"

            The scope of the status. GLOBAL for company-managed projects and PROJECT for team-managed projects.

        • statuses: {
              description?: string;
              name: string;
              statusCategory: string & {} | "TODO" | "IN_PROGRESS" | "DONE";
              [key: string]: unknown;
          }[]

          Details of the statuses being created.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              description?: string;
              id?: string;
              name?: string;
              scope?: {
                  project?: { id: string; [key: string]: unknown };
                  type: string & {} | "PROJECT" | "GLOBAL";
                  [key: string]: unknown;
              };
              statusCategory?: string & {}
              | "TODO"
              | "IN_PROGRESS"
              | "DONE";
              [key: string]: unknown;
          }[],
      >