Smart Values in Smart Panels
On this page
What you will learn here
On this page, you'll learn what Smart Values in Smart Panel are, how they work in JQL/ CQL, and how to use them.
Overview
The Smart Value in Smart Panel feature allows you to use dynamic values in your JQL (Jira Query Language), CQL (Confluence Query Language) queries instead of hardcoding static values. This makes your queries more flexible, reusable, and easier to maintain, since they automatically adapt to the context of the issue.
How The Smart Value Works
Smart Values in Smart Panel reference fields within an issue dynamically.
The syntax is:
CODE
|
<field path>represents the JSON path of the issue field.At runtime, this will be replaced with the actual field value from the issue.
The data you can access with these Smart Values comes directly from the Jira Issue API:
GET /rest/api/3/issue/{issueIdOrKey}
This means any field returned by that API can be used in a Smart Value expression.
CODE
|
Example
JQL with Smart Values (Dynamic)
CODE
|
Here:
smartValue(issue.fields.priority.name)→ Gets the priority of the current issue.smartValue(issue.fields.issuetype.name)→ Gets the issue type of the current issue.
This query automatically adapts to whichever issue it is applied to, without requiring manual edits.
For a ticket such as ATD-1 with priority set to High and issue type set to Bug, the JQL is:
CODE
|
CQL with Smart Values (Dynamic)
CODE
|
Here:
smartValue(issue.fields.assignee.accountId)→ Gets the account Id assignee of the current issue.
This query automatically adapts to whichever issue it is applied to, without requiring manual edits.
For a ticket such as ATD-1 with assigne set to user have Id: “122-884-dd02-ddffs”, the CQL is:
type = page and creator = "122-884-dd02-ddffs"