Skip to content

Atlassian: Parse JQL query

Atlassian jql.parseJqlQueries: arguments, response, policy and SDK examples.

← Jql operations · Get started

Operation atlassian.parsejqlqueries

Provider route: POST /{cloudId}/rest/api/3/jql/parse. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["jql"]["parseJqlQueries"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.jql.parseJqlQueries(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.jql.parse_jql_queries(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
queryobjectRequired within parentAdditional keys: not allowed
query.validationstringRequired within parentDefault: strict
One of: strict, warn, none
bodyModelRequired within parentExpand Parse JQL query — request body — body

Referenced models: Parse JQL query — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Parse JQL query — response body

Referenced models: Parse JQL query — response body

12 more schemas are linked from the tables above, on the schema pages.

Parse JQL query — request body — body
FieldTypePresenceDescription and constraints
$objectRootA list of JQL queries to parse.
write Only: true
Additional keys: not allowed
queriesarrayRequired within parentA list of queries to parse.
Minimum length: 1
queries[]stringEach itemMinimum length: 1
Parse JQL query — response body
FieldTypePresenceDescription and constraints
$objectRootA list of parsed JQL queries.
queriesJSONOptional
queries (anyOf 1)arrayAlternativeA list of parsed JQL queries.
Minimum length: 1
queries (anyOf 1)[]ModelEach itemExpand Parse JQL query — response body — queries A list of parsed JQL queries item
queries (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item

Parse JQL query — response body — queries A list of parsed JQL queries item
FieldTypePresenceDescription and constraints
$objectRootDetails of a parsed JQL query.
Minimum length: 1
errorsJSONOptional
errors (anyOf 1)arrayAlternativeThe list of syntax or validation errors.
Unique items: true
errors (anyOf 1)[]stringEach item
errors (anyOf 2)nullAlternative
queryJSONOptional
query (anyOf 1)stringAlternativeThe JQL query that was parsed and validated.
query (anyOf 2)nullAlternative
structureJSONOptional
structure (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query
The syntax tree of the query. Empty if the query was invalid.
structure (anyOf 2)nullAlternative
warningsJSONOptional
warnings (anyOf 1)arrayAlternativeThe list of warning messages
Unique items: true
warnings (anyOf 1)[]stringEach item
warnings (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query

Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query
FieldTypePresenceDescription and constraints
$objectRootA parsed JQL query.
orderByJSONOptional
orderBy (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query order By Details of the order-by JQL clause
orderBy (anyOf 2)nullAlternative
whereJSONOptional
where (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause
where (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause, Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query order By Details of the order-by JQL clause

Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause
FieldTypePresenceDescription and constraints
$objectRootA JQL query clause.
$ (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause clauses, operator
$ (anyOf 2)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator
$ (anyOf 3)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator, predicates
$ (anyOf 4)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operator, predicates

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause clauses, operator, Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operator, predicates, Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator, Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator, predicates

Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query order By Details of the order-by JQL clause
FieldTypePresenceDescription and constraints
$objectRootDetails of the order-by JQL clause.
fieldsJSONOptional
fields (anyOf 1)arrayAlternativeThe list of order-by clause fields and their ordering directives.
fields (anyOf 1)[]ModelEach itemExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query order By Details of the order-by JQL clause fields array item
fields (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query order By Details of the order-by JQL clause fields array item

Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause clauses, operator
FieldTypePresenceDescription and constraints
$objectRootA JQL query clause that consists of nested clauses. For example, `(labels in (urgent, blocker) OR lastCommentedBy = currentUser()). Note that, where nesting is not defined, the parser nests JQL clauses based on the operator precedence. For example, "A OR B AND C" is parsed as "(A OR B) AND C". See Setting the precedence of operators for more information about precedence in JQL queries.`
clausesJSONOptional
clauses (anyOf 1)arrayAlternativeThe list of nested clauses.
clauses (anyOf 1)[]ModelEach itemExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause
clauses (anyOf 2)nullAlternative
operatorJSONOptional
operator (anyOf 1)stringAlternativeThe operator between the clauses.
Known values: and, or, not
operator (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause

Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator
FieldTypePresenceDescription and constraints
$objectRootA clause that asserts the current value of a field. For example, `summary ~ test`.
fieldJSONOptional
field (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator field encoded Name, name, property
field (anyOf 2)nullAlternative
operandJSONOptional
operand (anyOf 1)ModelAlternativeExpand Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator operand Details of an operand in a JQL clause
operand (anyOf 2)nullAlternative
operatorJSONOptional
operator (anyOf 1)stringAlternativeThe operator between the field and operand.
Known values: =, !=, >, <, >=, <=, in, not in, ~, ~=, is, is not
operator (anyOf 2)nullAlternative

Referenced models: Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator operand Details of an operand in a JQL clause, Parse JQL query — response body — queries A list of parsed JQL queries item structure A parsed JQL query where A JQL query clause field, operand, operator field encoded Name, name, property

SDK function policy ID: atlassian.parsejqlqueries. Catalog operation: parsejqlqueries. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["read:jira-work"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.