jira.js
    Preparing search index...

    Function updateCustomFieldOption

    • Updates the options of a custom field.

      If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.

      Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.

      Permissions required: Administer Jira global permission.

      Parameters

      • client: Client
      • parameters: {
            contextId: number;
            fieldId: string;
            options?: {
                disabled?: boolean;
                id: string;
                value?: string;
                [key: string]: unknown;
            }[];
        }
        • contextId: number

          The ID of the context.

        • fieldId: string

          The ID of the custom field.

        • Optionaloptions?: { disabled?: boolean; id: string; value?: string; [key: string]: unknown }[]

          Details of the options to update.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              options?: {
                  disabled?: boolean;
                  id: string;
                  value?: string;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >