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.
Standard JIRA fields
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:
Affects Version/s
Field Name: Affects Version/s
Field ID:
versionsDescription: 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:
get("versions") or get("Affects Version/s")
that returns a Collection<Version>Example: Name of the first Affects Version/s
issue.get("versions")?.first()?.getName()
getAsString("versions") or getAsString("Affects Version/s") that returns a String
with comma separated version names:Example: Join all the Affects Version/s separated by a comma:
issue.getAsString("versions")
getAffectedVersions() that returns a Collection
<Version>Example: Join all the Affects Version/s separated by a comma:
issue.getAffectedVersions().join(",")
Assignee
Field name:
AssigneeField ID
: assigneeDescription: The Assignee field is an object that represents the user who this issue is assigned to.
Accessing the Assignee field: You can access the Assigneefield using any of the following getters of the Issue interface:
get("assignee") or get("Assignee")
that returns an ApplicationUserExample: Username of the user the issue is assigned to:
issue.get("assignee")?.getName()
getAsString("Assignee") or getAsString("assignee") that returns a String
representing the username:Example: Username of the user the issue is assigned to:
issue.getAsString("assignee")
getAssigneeUser()
that returns an ApplicationUserExample: EmailAddress of the user the issue is assigned to:
issue.getAssigneeUser()?.getEmailAddress()
Attachments
Field name:
AttachmentsField ID:
attachmentDescription: 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:
get("attachment") or get("Attachments")that returns a Collection<Attachment>Example: Size of the last attachment added to the issue:
issue.get("attachment")?.last()?.getFilesize()
getAsString("Attachments") or getAsString("attachment")
that returns the comma-separated names of the attachments:Example: Names of the attachments
issue.getAsString("attachment")
getAttachments() that returns a Collection
<Attachment>Example: Name of the Author of the first attachment:
if(issue.getAttachments() && issue.getAttachments().size() > 0) { issue.getAttachments().first().getAuthorObject()?.getName() }
Comments
Field name:
CommentField ID:
commentDescription: 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:
issue.get("comment").size()Example: Last Comment body:
if(issue.get("comment")) { issue.get("comment").last().getBody() }Example: Name of the author of the first comment on the issue:
if(issue.get("comment")) { issue.get("comment").first().getAuthorFullName() }
getAsString("Comments") or getAsString("comment") that returns a
Stringwith comma separated bodies of the comments:Example: All the comments on the issue separated by a comma:
issue.getAsString("comment")
Component/s
Field name:
Component/sField ID:
componentsDescription: The Component/s field is a collection of objects. Each object represents one component.
Accessing the Components field: You can access the Components field using any of the following getters of the Issue interface:
get("components") or get("Component/s")
that returns a Collection<ProjectComponent>Example: First component name:
issue.get("components")?.first()?.getName()
getAsString("Component/s") or getAsString("components") that returns a String
with comma separated component names:Examples: All the components of the issue
issue.getAsString("components")
getComponentObjects() that returns a Collection
<ProjectComponent>Example: Last component description:
if(issue.getComponentObjects()) { issue.getComponentObjects().last().getDescription() }
Created
Field name:
CreatedField ID:
createdDescription: The Created field is a Timestamp that represents the date-time of issue creation.
Accessing the Created field: You can access the Created field using any of the following getters of the Issue interface:
get("created") or get("Created")
that returns a TimestampExample: Created date of the issue:
issue.get("created")
getAsString("Created") or getAsString("created"
)that returns a String representing the issue creation date/timeExample: Issue creation date
issue.getAsString("created")
getCreated()
that returns a Timestamp:Example: Format the created date:
issue.getCreated().format("dd/MM/YYY")
To manipulate the date see here
Creator
Field name:
CreatorField ID:
creatorDescription: The Creator field is an object that represents the user who created this issue.
Accessing the Creator field: You can access the Creator field using any of the following getters of the Issue interface:
get("creator") or get("Creator")
that returns an ApplicationUserExample: Username of the Creator of the issue:
issue.get("creator").getName()
getAsString("Creator") or getAsString("creator")
that returns the username inString:Example: Username of the Creator of the issue:
issue.getAsString("creator")
getCreator()
that returns anApplicationUserExample: Displayname of the creator of the issue:
issue.getCreator().getDisplayName()
Description
Field name:
DescriptionField ID:
descriptionDescription: The Description field is a string representation of a multi-line text describing the issue.
Accessing the Description field: You can access the Description field using any of the following getters of the Issue interface:
get("description") or get("Description")
that returns a StringExample: Description of the issue:
issue.get("description")
getAsString("Description") or getAsString("description") that returns the Description in String
Example: Description of the issue:
issue.getAsString("description")
getDescription() that returns a String
:Example: Description of the issue:
issue.getDescription()
Need support? Create a request with our support team.
Copyright © 2005 - 2026 Appfire | All rights reserved.