Standard JIRA fields

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: 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:

 

Assignee

  • Field name: Assignee

  • Field ID: assignee

  • Description: 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:

 

Attachments

  • Field 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:

    • 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: 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:

        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 String with comma separated bodies of the comments:

      • Example: All the comments on the issue separated by a comma:

        issue.getAsString("comment")

 

Component/s

Created

  • Field name: Created

  • Field ID: created

  • Description: 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:

To manipulate the date see here

Creator

  • Field name: Creator

  • Field ID: creator

  • Description: 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:

Description

  • Field name: Description

  • Field ID: description

  • Description: 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:

Due Date

  • Field name: Due Date

  • Field ID: duedate

  • Description: The Due Date field is Timestamp representing the due date of the issue.

  • Accessing the Due date field: You can access the Due date field using any of the following getters of the Issue interface:

Environment

  • Field name: Environment

  • Field ID: environment

  • Description: The Environment field is a string representation of a multi-line text describing the environment of the issue.

  • Accessing the Environment field: You can access the Environment field using any of the following getters of the Issue interface:

Epic

  • Field name: Epic

  • Field ID: none

  • Description: Represents the issue's in the current Epic.

  • Accessing the Epic of an issue: You can access the Epic of an issue using the getEpic() that returns an Issue

    • Example: Get the Epic of the current issue

      issue.epic
    • Example: Get the status of the current issue's Epic

      issue.epic?.get("status")?.getName()
    • Example: Get the priority of the current issue's Epic

      issue.getEpic()?.get("priority")?.getName()

FixVersion/s

  • Field name: Fix Version/s

  • Field ID: fixVersions

  • Description: The Fix Version/s field is a collection of objects. Each object represents a single version.

  • Accessing the Fix Version/s field: You can access the Fix Version/s field using any of the following getters of the Issue interface:

      • Example: Join the names of the Fix Version/s, separated by commas:

        issue.getFixVersions().join(",")

ID

  • Field name: ID

  • Field ID: none

  • Description: The ID of the issue.

  • Accessing the ID of an issue: You can access the ID of the issue using getId() that returns ID of the issue in a Long format.

    • Example: ID of the issue

      issue.getId()

 

Issue links

  • Field 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:

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.