jira.js
    Preparing search index...

    Function getTransitions

    • Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types. Fields will only be returned if expand=transitions.fields. The fields in the metadata correspond to the fields in the transition screen for that transition. Fields not in the screen will not be in the metadata.

      Parameters

      • client: Client
      • parameters: { issueIdOrKey: string; transitionId?: string }
        • issueIdOrKey: string

          Issue id or key

        • OptionaltransitionId?: string

          Transition id

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              transitions?: {
                  description?: string;
                  fields?: Record<
                      string,
                      {
                          allowedValues?: Record<(...), (...)>[];
                          autoCompleteUrl?: string;
                          defaultValue?: Record<string, any>;
                          fieldId?: string;
                          hasDefaultValue?: boolean;
                          name?: string;
                          operations?: string[];
                          required?: boolean;
                          schema?: {
                              custom?: (...) | (...);
                              customId?: (...) | (...);
                              items?: (...) | (...);
                              system?: (...) | (...);
                              type?: (...) | (...);
                              [key: string]: unknown;
                          };
                          [key: string]: unknown;
                      },
                  >;
                  id?: string;
                  name?: string;
                  opsbarSequence?: number;
                  to?: {
                      description?: string;
                      iconUrl?: string;
                      id?: string;
                      name?: string;
                      self?: string;
                      statusCategory?: {
                          colorName?: string;
                          id?: number;
                          key?: string;
                          name?: string;
                          self?: string;
                          [key: string]: unknown;
                      };
                      statusColor?: string;
                      [key: string]: unknown;
                  };
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >