Skip to content

Atlassian: Currently being removed Evaluate Jira expression

Atlassian jiraExpressions.evaluateJiraExpression: arguments, response, policy and SDK examples.

← Jira expressions operations · Get started

Operation atlassian.evaluatejiraexpression

Provider route: POST /{cloudId}/rest/api/3/expression/eval. 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["jiraExpressions"]["evaluateJiraExpression"]>[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.jiraExpressions.evaluateJiraExpression(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.jira_expressions.evaluate_jira_expression(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}$
queryobjectOptionalAdditional keys: not allowed
query.expandstringOptional
bodyModelRequired within parentExpand Currently being removed Evaluate Jira expression — request body — body

Referenced models: Currently being removed Evaluate Jira expression — 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 Currently being removed Evaluate Jira expression — response body

Referenced models: Currently being removed Evaluate Jira expression — response body

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

Currently being removed Evaluate Jira expression — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
contextModelOptionalExpand Currently being removed Evaluate Jira expression — request body — body context
The context in which the Jira expression is evaluated.
expressionstringRequired within parentThe Jira expression to evaluate.

Referenced models: Currently being removed Evaluate Jira expression — request body — body context

Currently being removed Evaluate Jira expression — response body
FieldTypePresenceDescription and constraints
$objectRootThe result of evaluating a Jira expression.
metaJSONOptional
meta (anyOf 1)ModelAlternativeExpand Currently being removed Evaluate Jira expression — response body — meta complexity, issues
Contains various characteristics of the performed expression evaluation.
meta (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)JSONAlternativeThe value of the evaluated expression. It may be a primitive JSON value or a Jira REST API object. (Some expressions do not produce any meaningful results—for example, an expression that returns a lambda function—if that's the case a simple string representation is returned. These string representations should not be relied upon and may change without notice.)
value (anyOf 2)nullAlternative

Referenced models: Currently being removed Evaluate Jira expression — response body — meta complexity, issues

Currently being removed Evaluate Jira expression — request body — body context
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
boardintegerOptionalThe ID of the board that is available under the `board` variable when evaluating the expression.
Format: int64
customarrayOptionalCustom context variables and their types. These variable types are available for use in a custom context:

* `user`: A [user](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#user) specified as an Atlassian account ID.
* `issue`: An [issue](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#issue) specified by ID or key. All the fields of the issue object are available in the Jira expression.
* `json`: A JSON object containing custom content.
* `list`: A JSON list of `user`, `issue`, or `json` variable types.
custom[]ModelEach itemExpand Currently being removed Evaluate Jira expression — request body — body context custom item
customerRequestintegerOptionalThe ID of the customer request that is available under the `customerRequest` variable when evaluating the expression. This is the same as the ID of the underlying Jira issue, but the customer request context variable will have a different type.
Format: int64
issueModelOptionalExpand Currently being removed Evaluate Jira expression — request body — body context issue
The issue that is available under the `issue` variable when evaluating the expression.
issuesModelOptionalExpand Currently being removed Evaluate Jira expression — request body — body context issues
The collection of issues that is available under the `issues` variable when evaluating the expression.
projectModelOptionalExpand Currently being removed Evaluate Jira expression — request body — body context issue
The project that is available under the `project` variable when evaluating the expression.
serviceDeskintegerOptionalThe ID of the service desk that is available under the `serviceDesk` variable when evaluating the expression.
Format: int64
sprintintegerOptionalThe ID of the sprint that is available under the `sprint` variable when evaluating the expression.
Format: int64

Referenced models: Currently being removed Evaluate Jira expression — request body — body context custom item, Currently being removed Evaluate Jira expression — request body — body context issue, Currently being removed Evaluate Jira expression — request body — body context issues

Currently being removed Evaluate Jira expression — response body — meta complexity, issues
FieldTypePresenceDescription and constraints
$objectRoot
complexityJSONOptional
complexity (anyOf 1)ModelAlternativeExpand Currently being removed Evaluate Jira expression — response body — meta complexity, issues complexity beans, expensive Operations, primitive Values, steps
Contains information about the expression complexity. For example, the number of steps it took to evaluate the expression.
complexity (anyOf 2)nullAlternative
issuesJSONOptional
issues (anyOf 1)ModelAlternativeExpand Currently being removed Evaluate Jira expression — response body — meta complexity, issues issues Meta data describing the `issues` context variable
Contains information about the `issues` variable in the context. For example, is the issues were loaded with JQL, information about the page will be included here.
issues (anyOf 2)nullAlternative

Referenced models: Currently being removed Evaluate Jira expression — response body — meta complexity, issues issues Meta data describing the `issues` context variable, Currently being removed Evaluate Jira expression — response body — meta complexity, issues complexity beans, expensive Operations, primitive Values, steps

Currently being removed Evaluate Jira expression — request body — body context custom item
FieldTypePresenceDescription and constraints
$objectRootdiscriminator: {"mapping": {"issue": "#/components/schemas/IssueContextVariable", "json": "#/components/schemas/JsonContextVariable", "user": "#/components/schemas/UserContextVariable"}, "propertyName": "type"}
Additional keys: not allowed
typestringRequired within parentType of custom context variable.
$ (oneOf 1)ModelAlternativeExpand Currently being removed Evaluate Jira expression — request body — body context custom item type user
$ (oneOf 2)ModelAlternativeExpand Currently being removed Evaluate Jira expression — request body — body context custom item type issue
$ (oneOf 3)ModelAlternativeExpand Currently being removed Evaluate Jira expression — request body — body context custom item type json

Referenced models: Currently being removed Evaluate Jira expression — request body — body context custom item type issue, Currently being removed Evaluate Jira expression — request body — body context custom item type json, Currently being removed Evaluate Jira expression — request body — body context custom item type user

Currently being removed Evaluate Jira expression — request body — body context issue
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
idintegerOptionalThe ID of the referenced item.
Format: int64
keystringOptionalThe key of the referenced item.
Currently being removed Evaluate Jira expression — request body — body context issues
FieldTypePresenceDescription and constraints
$objectRootThe JQL specifying the issues available in the evaluated Jira expression under the `issues` context variable.
Additional keys: not allowed
jqlModelOptionalExpand Currently being removed Evaluate Jira expression — request body — body context issues jql
The JQL query that specifies the set of issues available in the Jira expression.

Referenced models: Currently being removed Evaluate Jira expression — request body — body context issues jql

Currently being removed Evaluate Jira expression — response body — meta complexity, issues issues Meta data describing the `issues` context variable
FieldTypePresenceDescription and constraints
$objectRootMeta data describing the `issues` context variable.
jqlJSONOptional
jql (anyOf 1)ModelAlternativeExpand Currently being removed Evaluate Jira expression — response body — meta complexity, issues issues Meta data describing the `issues` context variable jql count, max Results, start At, total Count, validation Warnings
jql (anyOf 2)nullAlternative

Referenced models: Currently being removed Evaluate Jira expression — response body — meta complexity, issues issues Meta data describing the `issues` context variable jql count, max Results, start At, total Count, validation Warnings

SDK function policy ID: atlassian.evaluatejiraexpression. Catalog operation: evaluatejiraexpression. 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-user", "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.