Skip to main content
Skip table of contents

Automation Smart Values

On this page


What you will learn here

This page explains how to use the Issue Picker custom field in Jira Automation and reference Single and Multi Issue Picker fields with Smart Values.


Single Issue Picker

The Single Issue Picker field allows you to select one issue. Here’s how to retrieve the issue and its details.

Retrieve the Issue

To get the issue in the Single Issue Picker custom field, use the following Smart Value:

GROOVY
{{issue.customfield_<customfield_id>}}

Example Output:

The field value will return the following object:

JSON
{
  "id": 1000,
  "key": "PROJ-123",
  "summary": "Mock summary"
}

Retrieve the Issue Key

To get the issue key from the field value, use this Smart Value:

GROOVY
{{issue.customfield_<customfield_id>.key}}

Example Output:

The field value will return the following object:

JSON
"PROJ-123"

image-20250729-091533.png

Multi Issue Picker

The Multi Issue Picker field allows you to select multiple issues. Here’s how to work with the list of issues.

Retrieve the List of Issues

To get a list of issues in the Multi Issue Picker custom field, use the following Smart Value:

GROOVY
{{issue.customfield_<customfield_id>.issues}}

Example Output:

The field value will return the following object:

JSON
{
  "issues": [
    {
      "id": 1000,
      "key": "PROJ-123",
      "summary": "Mock summary"
    },
    {
      "id": 1001,
      "key": "PROJ-124",
      "summary": "Mock summary 2"
    }
  ]
}

Retrieve the Issue Keys

To get the issue keys from the field value, use this Smart Value:

GROOVY
{{issue.customfield_<customfield_id>.issues.key}}

Example Output:

The field value will return the following object:

JSON
["PROJ-123", "PROJ-124"]

Notes

  1. Replace <customfield_id> with the actual ID of the custom field for your IssuePicker.

  2. The Single Issue Picker returns a single issue object, whereas the Multi Issue Picker returns a list of issue objects.

  3. For additional information on Smart Values, refer to the Jira Automation documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.