getPrecomputations method

Future<PageBeanJqlFunctionPrecomputationBean> getPrecomputations({
  1. List<String>? functionKey,
  2. int? startAt,
  3. int? maxResults,
  4. String? orderBy,
  5. String? filter,
})

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.

Implementation

Future<PageBeanJqlFunctionPrecomputationBean> getPrecomputations(
    {List<String>? functionKey,
    int? startAt,
    int? maxResults,
    String? orderBy,
    String? filter}) async {
  return PageBeanJqlFunctionPrecomputationBean.fromJson(await _client.send(
    'get',
    'rest/api/3/jql/function/computation',
    queryParameters: {
      if (functionKey != null)
        'functionKey': functionKey.map((e) => e).join(','),
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (orderBy != null) 'orderBy': orderBy,
      if (filter != null) 'filter': filter,
    },
  ));
}