...
This page explains how to access the value of Standard Jira fields using Groovy. You can access them using getters of the Issue interface. To understand how to write values into the writable Standard Jira fields see Raw value/text input for fields and Groovy expression input for fields.
In this page:
Panel |
---|
|
Affects Version/sField Name: Affects Version/s Field ID: versions Description: The Affects Version/s field is a collection of version objects. Each object represents a single version. Accessing the Affects Version/s field: You can access the Affects Version/s field using any of the following getters of the Issue interface:
|
Panel |
---|
|
AttachmentsField name: Attachments Field ID: attachment
Description: Attachment is a collection of objects. Each object represents a single attachment. Accessing the Attachments field: You can access the Attachments field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Field name: Comment Field ID: comment
- Description: The Comments field is a collection of objects. Each object represents one comment.
- Accessing the Comments field: You can access the Comments field using any of the following getters of the Issue interface:
get("comment") or get("Comments") that returns a List<Comment> Example: Number of comments on the issue: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| issue.get("comment").size() |
Example: Last Comment body: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| if(issue.get("comment"))
{
issue.get("comment").last().getBody()
} |
Example: Name of the author of the first comment on the issue: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| if(issue.get("comment"))
{
issue.get("comment").first().getAuthorFullName()
} |
getAsString("Comments") or getAsString("comment") that returns a String with comma separated bodies of the comments:
|
Panel |
---|
|
CreatedTo manipulate the date see here |
Panel |
---|
|
Issue linksField name: Issue Links Field ID: issuelinks Description: Issue links is a list of objects. Each object represents one issue link. Accessing the Issue links field: You can access the Issue links field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Last ViewedTo manipulate the date see here |
Panel |
---|
|
Original EstimateField name: Original Estimate Field ID: timeoriginalestimate Description: The Original Estimate field is a duration string representing the original time estimate. - Accessing the Original Estimate field: You can access the Original Estimate field using any of the following getters of the Issue interface:
|
Panel |
---|
|
ParentField name: Parent Field ID: none Description: Represents the parent of an issue. This applies only to sub-tasks. Accessing the parent issue of an issue: You can access the parent of an issue using the getParentObject() that returns an Issue
|
Panel |
---|
|
ResolvedTo manipulate the date see here |
Panel |
---|
|
UpdatedTo manipulate the date see here |
Panel |
---|
|
Work logField name: Log Work Field ID: worklog Description: The Work log field is a list of worklogs logged on the issue. Accessing the Worklog: You can access the Log Work field using the get("worklog") or get("Log Work")
that returns a List<Worklog>
|
Panel |
---|
|
∑ Original EstimateField name: Σ Original Estimate Field ID: aggregatetimeoriginalestimate
Description: The aggregate original estimate field is a number representing the total original estimate of the issue and its sub-tasks if the issue has any. - Accessing the ∑ Original Estimate field: You can access the ∑ Original Estimate field using any of the following getters of the Issue interface:
|
Panel |
---|
|
∑ Remaining EstimateField name: Σ Remaining Estimate Field ID: aggregatetimeestimate
Description: The aggregate remaining Estimate field is a number representing the total remaining estimate of the issue and its sub-tasks if the issue has any. - Accessing the ∑ Remaining Estimate field: You can access the ∑ Remaining Estimate field using any of the following getters of the Issue interface:
|