Issue interface
This document details the methods you can use on any Issue object, such as the one provided by the issue, linkedIssue and parentIssue variables (where applicable), as well as Issue objects returned by other methods such as getParentObject(), getEpic() or getLinkedIssues().
Methods of the Issue interface:
denotes a method that is specific to JMCF
On this page:
Getters
Method | Return type | Returns |
|---|---|---|
| The value of a system or custom field of the Issue object. | |
| The value of a system or custom field of the Issue object. If the value is null, it returns the default value specified as the second parameter. | |
| A collection of Affects Version/s objects, an empty collection if there are no affects versions. | |
The Assignee user, null if the issue is not assigned. | ||
Same as the | ||
Same as the | ||
The JSON-style version of a system or a custom field of the Issue object, essentially a key-value Map. This can be useful to access some complex Jira Software and Jira Service desk fields. | ||
A collection of attachment objects, an empty collection if there are no attachments. | ||
Collection | The Collection of available options for a field, which can be:
Both field names and field IDs are supported, just like on the get() method. See here for the list of supported fields. | |
A collection of project components (as objects) that this issue is assigned to, an empty collection if there are no components. | ||
The timestamp of the issue creation. | ||
The user who created the issue. | ||
The description of the issue, | ||
The due date of the issue, | ||
| The value of the specified Entity property of the issue, parsed into a Groovy object. | |
The Environment of the issue, | ||
| The Epic, if any, of the current issue. | |
The "remaining estimate" of work left to be performed on this issue, in milliseconds, | ||
| ||
| ||
getId | The ID of the issue | |
| A list of inward issue links to the issue, an empty list if there are no inward issue links. | |
The ID of the issue type of the issue. | ||
The issue type object of the issue | ||
getKey | The key of the issue | |
The labels of the issue, empty Set if no labels. | ||
| A list of issues linked to the current issue (including the issue links being added on the transition screen during a transition) through a specific link type. Note: Supports all issue links other than Parent-Subtask (see | |
| A list of issues linked to the current issue (including the issue links being added on the transition screen during a transition) through any regular link type. Note: Supports all issue links other than Parent-Subtask (see | |
| Retrieve a map of issue fields that have been modified during the current transition. | |
The issue number in the project | ||
The "original estimate" of work to be performed on this issue, in milliseconds, null if empty. | ||
| A list of outward issue links from the issue, an empty list if there are no outward issue links. | |
The parent Issue, or null if the issue is not a subtask. | ||
| A list of issues linked to the current issue through the "is parent of (Portfolio child Issues)" link type | |
| The issue linked to the current issue through the "is child of (Portfolio Parent Link)", or | |
The Priority for this Issue. | ||
The ID of the Project for this Issue. | ||
The Project for this Issue. | ||
Depends on the field being accessed | Same as the | |
A collection of remote issue links of the current issue to the target application (e.g. "jira" or "confluence"). When the | ||
The Reporter of the issue | ||
Timestamp of when an issue was resolved. Will be | ||
The ID of the resolution of the issue, if any | ||
The Resolution for this Issue, | ||
The Security level for this issue, | ||
| The URL of the issue's customer request view. Only applies to Service Desk requests. Returns | |
The status of the issue | ||
| A list of stories of the current Epic, an empty list if there are no Stories | |
The subtasks of this issue, an empty collection if no subtasks | ||
The summary of the issue | ||
The "total time spent" working on this issue, in milliseconds, | ||
The timestamp of the issue update | ||
Returns the value of the specified User property of the user. This method returns User Properties that are defined on the Edit User Properties Jira admin page. which are different from the Entity Properties that can only be set and read programmatically (see the Set/Get/DeleteEntityProperty methods) | ||
| The URL of the issue's View screen. | |
getVotes | The number of votes for the issue, | |
The number of watchers for the issue, | ||
The ID of the workflow the issue belongs to | ||
True when the issue is created | ||
True when the issue is editable | ||
True when the issue is a sub-task |
Setters
Method | Parameters | Description |
|---|---|---|
|
| Sets the value of the specified Entity property of the issue to a JSON representation of the specified value. |
|
| Sets the value of the specified Entity property of the issue to the specified JSON string. |
| Sets the value of a system or custom field of the Issue object |
Others
Method | Parameters | Description |
|---|
