Skip to content

Function: getPrecomputationsByID() ​

ts
function getPrecomputationsByID(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  notFoundPrecomputationIDs?: string[];
  precomputations?: object[];
}>;

Defined in: src/cloud/api/jqlFunctionsApps.ts:88

Returns function precomputations by IDs, 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 ​

ParameterTypeDescription
clientClient-
parameters{ orderBy?: | string & object | "created" | "updated" | "functionKey" | "used" | "-created" | "+created" | "-functionKey" | "+functionKey" | "-used" | "+used" | "-updated" | "+updated"; precomputationIDs?: string[]; }-
parameters.orderBy?| string & object | "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.
parameters.precomputationIDs?string[]-
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; notFoundPrecomputationIDs?: string[]; precomputations?: object[]; }>