jira.js
    Preparing search index...

    Function getAutoCompletePost

    • Returns reference data for JQL searches. This is a downloadable version of the documentation provided in Advanced searching - fields reference and Advanced searching - functions reference, along with a list of JQL-reserved words. Use this information to assist with the programmatic creation of JQL queries or the validation of queries built in a custom query builder.

      This operation can filter the custom fields returned by project. Invalid project IDs in projectIds are ignored. System fields are always returned.

      It can also return the collapsed field for custom fields. Collapsed fields enable searches to be performed across all fields with the same name and of the same field type. For example, the collapsed field Component - Component[Dropdown] enables dropdown fields Component - cf[10061] and Component - cf[10062] to be searched simultaneously.

      Permissions required: None.

      Parameters

      • client: Client
      • parameters: { includeCollapsedFields?: boolean; projectIds?: number[] }
        • OptionalincludeCollapsedFields?: boolean

          Include collapsed fields for fields that have non-unique names.

        • OptionalprojectIds?: number[]

          List of project IDs used to filter the visible field details returned.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              jqlReservedWords?: string[];
              visibleFieldNames?: {
                  auto?: "false"
                  | "true"
                  | string & {};
                  cfid?: string;
                  deprecated?: "false" | "true" | string & {};
                  deprecatedSearcherKey?: string;
                  displayName?: string;
                  operators?: string[];
                  orderable?: "false" | "true" | string & {};
                  searchable?: "false" | "true" | string & {};
                  types?: string[];
                  value?: string;
                  [key: string]: unknown;
              }[];
              visibleFunctionNames?: {
                  displayName?: string;
                  isList?: "false"
                  | "true"
                  | string & {};
                  supportsListAndSingleValueOperators?: "false" | "true" | string & {};
                  types?: string[];
                  value?: string;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >