jira.js
    Preparing search index...

    Function getPrecomputations

    • Returns the list of a function's precomputations along with information about when they were created, updated, and last used. Each precomputation has a value - the JQL fragment to replace the custom function clause with.

      Permissions required: This API is only accessible to apps and apps can only inspect their own functions.

      The new read:app-data:jira OAuth scope is 100% optional now, and not using it won't break your app. However, we recommend adding it to your app's scope list because we will eventually make it mandatory.

      Parameters

      • client: Client
      • Optionalparameters: {
            functionKey?: string[];
            maxResults?: number;
            orderBy?:
                | string & {}
                | "created"
                | "updated"
                | "functionKey"
                | "used"
                | "-created"
                | "+created"
                | "-functionKey"
                | "+functionKey"
                | "-used"
                | "+used"
                | "-updated"
                | "+updated";
            startAt?: number;
        }
        • OptionalfunctionKey?: string[]

          The function key in format:

          • Forge: ari:cloud:ecosystem::extension/[App ID]/[Environment ID]/static/[Function key from manifest]
          • Connect: [App key]__[Module key]
        • OptionalmaxResults?: number

          The maximum number of items to return per page.

        • OptionalorderBy?:
              | string & {}
              | "created"
              | "updated"
              | "functionKey"
              | "used"
              | "-created"
              | "+created"
              | "-functionKey"
              | "+functionKey"
              | "-used"
              | "+used"
              | "-updated"
              | "+updated"

          Order the results by a field:

          • functionKey Sorts by the functionKey.
          • used Sorts by the used timestamp.
          • created Sorts by the created timestamp.
          • updated Sorts by the updated timestamp.
        • 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: {
                  arguments?: string[];
                  created?: Date;
                  error?: string;
                  field?: string;
                  functionKey?: string;
                  functionName?: string;
                  id?: string;
                  operator?: string;
                  updated?: Date;
                  used?: Date;
                  value?: string;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >