Cloud Migration Resources
Planning a Jira Cloud migration? These resources can help you get started:
→ JMWE Cloud features – Review Cloud features and understand key differences between DC and Cloud.
→ Migration support from Appfire – Learn how we can help you migrate smoothly.
Groovy expression input for fields
This document lists the expected result of a Groovy expression that should be provided to set Jira Standard and Custom fields. The easiest is to use the "Expected Value" tab of the Groovy editor help system. It lists the possible expected values for the selected Field and Value Type. This is applicable in contexts where you set a field value or comment an issue or write a conditional Groovy script. Select the Field and Value Type as Set field value to Groovy expression. Click on Expected Value. The help editor displays the expected values for the selected field.
You might also want to look at Standard fields, Predefined custom fields, and User-created custom fields to know how to access the fields of an issue object.
On this page:
Standard Jira fields
Field Name | Expected input type | Expected input value | Example |
|---|---|---|---|
Affects Version/s | String | A Groovy expression that returns a:
| |
Assignee | A Groovy expression that returns a:
| ||
Components | String | A Groovy expression that returns a:
| |
Description | A Groovy expression that returns a:
|
| |
Due date | A Groovy expression that returns a:
| ||
Environment | A Groovy expression that returns a:
|
| |
Fix Version/s | String | A Groovy expression that returns a:
| |
Issue type | Use with caution! Changing the issue type should only be done if the current and new issue types share the same workflow, or if the issue's Status exists in both the current and new workflow. Otherwise, the operaton will fail. Also, when changing the issue type of the current issue, make sure to move the post-function below the "Set issue status to the linked status of the destination workflow step" built-in post-function. A Groovy expression that returns a:
|
| |
Labels | A Groovy expression that returns a:
|
| |
Original Estimate | A Groovy expression that returns a
| ||
Priority | A Groovy expression that returns a:
| ||
Remaining Estimate | A Groovy expression that returns a
|
| |
Reporter | A Groovy expression that returns a:
| ||
Resolution | A Groovy expression that returns a:
|
| |
Security level | A Groovy expression that returns a:
| ||
Summary | A Groovy expression that returns a String representing a single line text |
| |
Time spent | A Groovy expression that returns a
|
| |
Votes | String | A Groovy expression that returns a:
|
|
Watchers | String | A Groovy expression that returns a:
|
|
Pre-defined custom fields
Capture for JIRA fields
Field Name | Expected input type | Expected input value | Examples |
|---|---|---|---|
All Capture for JIRA fields | A Groovy expression that returns a:
|
| |
Raised during | A Groovy expression that returns a String representing the id of a session. |
|
Jira Software fields
Field Name | Expected input type | Expected input value | Examples |
|---|---|---|---|
Epic Color | A Groovy expression that returns a String representing the color of the Epic. |
| |
Epic Link | A Groovy expression returning a String representing the key of an Epic. | ||
Epic Name | A Groovy expression that returns a String representing the name of the Epic. |
| |
Epic Status | A Groovy expression that returns a String representing the value of the Epic status. |
| |