• Announcement banner
  • App data policies (EAP)
  • Application roles
  • Audit records
  • Avatars
  • Classification levels
  • Dashboards
  • Filters
  • Filter sharing
  • Group and user picker
  • Groups
  • Issues
  • UI modifications (apps)
  • Issue attachments
  • Issue comments
  • Issue comment properties
  • Issue fields
  • Issue field configurations
  • Issue custom field contexts
  • Issue custom field options
  • Issue custom field options (apps)
  • Issue custom field values (apps)
  • Issue custom field configuration (apps)
  • Issue navigator settings
  • Issue notification schemes
  • Issue priorities
  • Issue properties
  • Issue resolutions
  • Issue security level
  • Issue security schemes
  • Issue types
  • Issue type schemes
  • Issue type screen schemes
  • Issue type properties
  • Issue votes
  • Issue watchers
  • Issue worklogs
  • Issue worklog properties
  • Jira expressions
  • Jira settings
  • JQL
  • JQL functions (apps)
  • Labels
  • License metrics
  • Myself
  • Permissions
  • Permission schemes
  • Projects
  • Project avatars
  • Project categories
  • Project classification levels
  • Project components
  • Project email
  • Project features
  • Project key and name validation
  • Project permission schemes
  • Project properties
  • Project roles
  • Project role actors
  • Project types
  • Project versions
  • Screens
  • Screen tabs
  • Screen tab fields
  • Screen schemes
  • Server info
  • Status
  • Tasks
  • Time tracking
  • Users
  • User properties
  • Webhooks
  • Workflows
  • Workflow transition rules
  • Workflow schemes
  • Workflow scheme project associations
  • Workflow scheme drafts
  • Workflow statuses
  • Workflow status categories
  • Workflow transition properties
  • App properties
  • Dynamic modules
  • App migration
  • Service Registry
Cloud
Jira Cloud platform / Reference / REST API v2

JQL functions (apps)

Postman Collection
OpenAPI

This resource represents JQL function's precomputations. Precomputation is a mapping between custom function call and JQL fragment returned by this function. Use it to get and update precomputations.

GET

Get precomputations (apps)Experimental

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.

Data Security Policy: Exempt from app access rules
Scopes

Connect app scope requiredREAD

OAuth 2.0 scopes required:  Any Scope

Request

Query parameters

functionKey

array<string>

startAt

integer

maxResults

integer

orderBy

string

Responses

Returned if the request is successful.

application/json

PageBeanJqlFunctionPrecomputationBean

A page of items.

GET/rest/api/2/jql/function/computation
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestJira(route`/rest/api/2/jql/function/computation`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 { "isLast": true, "maxResults": 100, "startAt": 0, "total": 1, "values": [ { "id": "cf75a1b0-4ac6-4bd8-8a50-29a465a96520", "value": "issue in (TEST-1, TEST-2, TEST-3)", "functionKey": "ari:cloud:ecosystem::extension/00000000-1111-2222-3333-4444444/111111-2222-3333-4444-55555/static/issuesWithText", "field": "issue", "operator": "in", "functionName": "issuesWithText", "arguments": [ "Test" ], "created": "2023-10-14T05:25:20.000+0000", "updated": "2023-10-14T05:25:20.000+0000", "used": "2023-10-14T05:25:20.000+0000" }, { "id": "2a854f11-d0e1-4260-aea8-64a562a7062a", "error": "Error message to be displayed to the user", "functionKey": "ari:cloud:ecosystem::extension/00000000-1111-2222-3333-4444444/111111-2222-3333-4444-55555/static/issuesWithText", "field": "issue", "operator": "=", "functionName": "issuesWithText", "arguments": [ "10001" ], "created": "2023-10-14T05:25:20.000+0000", "updated": "2023-10-14T05:25:20.000+0000", "used": "2023-10-14T05:25:20.000+0000" } ] }
POST

Update precomputations (apps)Experimental

Update the precomputation value of a function created by a Forge/Connect app.

Permissions required: An API for apps to update their own precomputations.

Data Security Policy: Exempt from app access rules
Scopes

Connect app scope requiredREAD

OAuth 2.0 scopes required:  Any Scope

Request

Request bodyapplication/json

values

array<JqlFunctionPrecomputationUpdateBean>

Responses

Returned if the request is successful.

application/json

any

POST/rest/api/2/jql/function/computation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "values": [ { "id": "f2ef228b-367f-4c6b-bd9d-0d0e96b5bd7b", "value": "issue in (TEST-1, TEST-2, TEST-3)" }, { "error": "Error message to be displayed to the user", "id": "2a854f11-d0e1-4260-aea8-64a562a7062a" } ] }`; const response = await api.asUser().requestJira(route`/rest/api/2/jql/function/computation`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());

Rate this page: