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.
...
Field Name | Expected input type | Expected input value | Example | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Affects Version/s |
| A Groovy expression that returns a:
| ||||||||
Assignee | A Groovy expression that returns a:
| |||||||||
Components |
| A Groovy expression that returns a:
| ||||||||
Description | String | A Groovy expression that returns a:
|
| |||||||
Due date | A Groovy expression that returns a:
| |||||||||
Environment | String | A Groovy expression that returns a:
|
| |||||||
Fix Version/s |
| A Groovy expression that returns a:
| Labels | |||||||
SetIssue type |
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 | String | A Groovy expression that returns a String representing a single line text |
| |||||||
Time spent | A Groovy expression that returns a
|
| ||||||||
Votes |
| A Groovy expression that returns a:
|
| Votes
|
| |||||
Watchers |
| A Groovy expression that returns a: | Watchers |
Collection<ApplicationUser>
|
|
|
|
Pre-defined custom fields
Capture for JIRA fields
Field Name | Expected input type | Expected input value | Examples |
---|---|---|---|
All Capture for JIRA fields | String | A Groovy expression that returns a:
|
|
Raised during | String | A Groovy expression that returns a |
Field Name | Expected input type | Expected input value | Examples |
---|---|---|---|
All Capture for JIRA fields | String representing the |
"charlie"
"charlie,carter"
["charlie","carter"]
On the creation of a Story add the reporter of its Epic to the Watchers
Pre-defined custom fields
Capture for JIRA fields
id of a session. | "10001" |
Jira Software fields
Field Name | Expected input type | Expected input value | Examples |
---|---|---|---|
Epic Color | String | A Groovy expression that returns a String representing the color of the Epic. |
|
Epic Link | String | A Groovy expression returning a String representing the key of an Epic. | |
Epic Name | String | A Groovy expression that returns a |
String representing |
the name of the Epic. |
|
|
Epic Status | String | A Groovy expression that returns a String representing the |
value of the Epic status. |
"10001"
Jira Software fields
Field Name | Expected input type | Expected input value | Examples | |||||
---|---|---|---|---|---|---|---|---|
Epic Color | String | A Groovy expression that returns a String representing the color of the Epic. |
| |||||
Epic Link | String | A Groovy expression returning a String representing the key of an Epic. | ||||||
Epic Name | String | A Groovy expression that returns a String representing the name of the Epic. |
| |||||
Epic Status | String | A Groovy expression that returns a String representing the value of the Epic status. | Sprint |
| Sprint |
| A Groovy expression that returns a: |
|
Status |
A Groovy expression that returns a:
|
| ||||||
Story points | A Groovy expression that returns a:
|
|
...
Field Name | Expected input type | Expected input value | Examples |
---|---|---|---|
Approvers |
| A Groovy expression that returns a:
|
|
Customer Request Type | String | A Groovy expression that returns a:
|
|
Organizations | A Groovy expression that returns a:
|
| |
Request Participants |
| A Groovy expression that returns a:
|
|
...
Field Name | Expected input type | Expected input value | Examples |
---|---|---|---|
Account | A Groovy expression that returns a String representing the tempo account id. "2" either:
|
| |
Team | String | A Groovy expression that returns a String representing the id of the Tempo team. | "1" |
...