jira.js
    Preparing search index...

    Function getOptionsForContext

    • Returns a paginated list of all custom field option for a context. Options are returned first then cascading options, in the order they display in Jira.

      This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.

      Permissions required: Administer Jira global permission. Edit Workflow edit workflow permission

      Parameters

      • client: Client
      • parameters: {
            contextId: number;
            fieldId: string;
            maxResults?: number;
            onlyOptions?: boolean;
            optionId?: number;
            startAt?: number;
        }
        • contextId: number

          The ID of the context.

        • fieldId: string

          The ID of the custom field.

        • OptionalmaxResults?: number

          The maximum number of items to return per page.

        • OptionalonlyOptions?: boolean

          Whether only options are returned.

        • OptionaloptionId?: number

          The ID of the option.

        • OptionalstartAt?: number

          The index of the first item to return in a page of results (page offset).

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              isLast: boolean;
              maxResults: number;
              nextPage?: string;
              self?: string;
              startAt: number;
              total: number;
              values: {
                  disabled: boolean;
                  id: string;
                  optionId?: string;
                  value: string;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >