Issue Interface

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.

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 JMWE

 

All methods of the Issue interface:

1 get(String fieldNameOrID) | 2 get(String fieldNameOrID, Object defaultValue)  | 3 getAffectedVersions() | 4 getAssignee() | 5 getAsJsonData(String fieldNameOrID)  | 6 getAsString(String fieldNameOrID) | 7 getAsString(String fieldNameOrID, String defaultValue) | 8 getAttachments() | 9 getComponentObjects() | 10 getCreated() | 11 getCreator() | 12 getDescription() | 13 getDueDate() | 14 getEnvironment() | 15 getEstimate() | 16 getFixVersions() | 17 getId() | 18 getIssueTypeId() | 19 getIssueType() | 20 getKey() | 21 getLabels() | 22 getNumber() | 23 getOriginalEstimate() | 24 getPriorityObject() | 25 getProjectId() | 26 getProjectObject() | 27 getRawValue(String fieldNameOrID) | 28 getReporter() | 29 getResolutionDate() | 30 getResolutionId() | 31 getResolution() | 32 getSecurityLevelId() | 33 getStatus() | 34 getSummary() | 35 getTimeSpent() | 36 getUpdated() | 37 getVotes() | 38 getWatches() | 39 getWorkflowId() | 40 isCreated() | 41 isEditable() | 42 isSubTask() | 43 getEpic() | 44 getInwardIssueLinks() | 45 issue.getIssueLinks()  | 46 issue.getIssueLinks(String linkType) | 47 issue.getIssueLinks(Long linkTypeId, String direction)  | 48 getLinkedIssues() | 49 getLinkedIssues(String linkType) | 50 getLinkedIssues(Long linkTypeId, String direction)  | 51 getOutwardIssueLinks() | 52 getParentObject() | 53 getPortfolioChildIssues() | 54 getPortfolioParent() | 55 getRemoteLinks(String ApplicationName)  | 56 getStories() | 57 getSubTaskObjects() | 58 linkIssue(String linkType, Issue destIssue)  | 59 linkIssue(String linkType, String destIssueKey)  | 60 linkIssue(Long linkTypeID, String direction, Issue destIssue)  | 61 linkIssue(Long linkTypeID, String direction, Issue destIssueKey)  | 62 setFieldValue(String fieldNameOrId, Object value) | 63 deleteEntityProperty(String propertyName)  | 64 getEntityProperty(String propertyName)  | 65 setEntityProperty(String propertyName, Object value)  | 66 setEntityPropertyToJsonString(String propertyName, String jsonString)  | 67 showMessageToUser(String type, Boolean autoClose, String title, String body) | 68 showMessageToUser(String type, String title, String body, String actionName, String actionType, String actionParam, Boolean inNewWindow)  | 69 addAvailableOption(String fieldNameorID, String value)  | 70 addRemoteLink(RemoteIssueLink remoteIssueLink)  | 71 getAvailableOptions(String fieldNameOrID) | 72 getFieldHistory(String fieldNameOrID)  | 73 getModifiedFields() | 74 getServiceDeskUrl()  | 75 getUrl() 

 

Methods to access issue fields and information

Method

Description

Parameters

Return type

Method

Description

Parameters

Return type

Returns the value of a system or custom field of the Issue object.

A string representing the field name or field Id

Depends on the field being accessed

Returns 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. 

  1. A string representing the field name or field Id

  2. An object representing the field default value

Depends on the field being accessed

Returns a collection of Affects Version/s objects, an empty collection if there are no affects versions.

None

Collection<Version>

Returns the Assignee user, null if the issue is not assigned.

None

ApplicationUser

Returns 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 string representing the field name or field Id

JsonData

Same as the get method, but returns a String representation of the value of the system or custom field, whenever possible.

A string representing the field name or field Id

 

Same as the get method, but returns a String representation of the value of the system or custom field, whenever possible. If the value is null, it returns the default value specified as the second parameter. The defaultValue must be a String.

  1. A string representing the field name or field Id

  2. A string representing the field default value

 

Returns a collection of attachment objects, an empty collection if there are no attachments.

None

Collection<Attachment>

getChannel ()

Returns the channel through which the Jira Service Management request was created

None

String

Returns a collection of project components (as objects) that this issue is assigned to, an empty collection if there are no components.

None

Collection<ProjectComponent>

Returns the timestamp of the issue creation.

None

Timestamp

Returns the user who created the issue.

None

ApplicationUser

Returns the description of the issue, null if there is no description for the issue

None

String

Returns the due date of the issue, null if there is no due date set for the issue

None

Timestamp

Returns the Environment of the issue, null if there is no Environment set for the issue

None

String

Returns the "remaining estimate" of work left to be performed on this issue, in milliseconds, null if empty.

None

Long


Returns a collection of Fix Version/s objects, an empty collection if there are no Fix versions.

None

Collection<Version>

Returns the ID of the issue

None

Long

Returns the ID of the issue type of the issue.

None

String

Returns the issue type object of the issue

None

IssueType

Returns the key of the issue

None

String

Returns the labels of the issue, empty Set if no labels.

None

Set<Label>

Returns the issue number in the project

None

Long

Returns the "original estimate" of work to be performed on this issue, in milliseconds, null if empty.

None

Long

Returns the Priority for this Issue.

None

Priority

Returns the ID of the Project for this Issue.

None

Long

Returns the Project for this Issue.

None

Project

Same as the get method, but for Single-Select type custom fields, returns an Option object instead of a String

A string representing the field name or field Id

Depends on the field being accessed

Returns the Reporter of the issue

None

ApplicationUser

Returns the timestamp of when an issue was resolved. Will be null if it hasn't been resolved yet, or if an issue has been returned to the 'unresolved' state.

None

Timestamp

Returns the ID of the resolution of the issue, if any

None

String

Returns the Resolution for this Issue, null if the issue hasn't been resolved yet, or if an issue has been returned to the 'unresolved' state.

None

Resolution

Returns the Security level for this issue, null if there is no Security level set for the issue

None

Long

Returns the status of the issue

None

Status

Returns the summary of the issue

None

String

Returns the "total time spent" working on this issue, in milliseconds, null if empty.

None

Long

Returns the timestamp of the issue update

None

Timestamp

Returns the number of votes for the issue, null if empty.

None

Long

Returns the number of watchers for the issue, null if empty.

None

Long

Returns the ID of the workflow the issue belongs to

None

Long

Returns true when the issue is created

None

Boolean

Returns true when the issue is editable

None

Boolean

Returns true when the issue is a sub-task

None

Boolean

Methods to access issue's linked issues

Method

Description

Parameters

Return type

Method

Description

Parameters

Return type

getEpic()

Returns the Epic, if any, of the current issue. null if the issue doesn't belong to an Epic.

None

Issue

getInwardIssueLinks()

Returns a list of inward issue links to the issue, an empty list if there are no inward issue links.

None

List<IssueLink>

issue.getIssueLinks() 

Returns a list of issue links from/to the current issue. This can be used to set the Linked Issues field

None

List<IssueLinkWithDirection>

issue.getIssueLinks(String linkType)

 

Returns a list of issue links from/to the current issue with a specific link type. This can be used to set the Linked Issues field.

linkType: The name of a link type, as it appears on the issue view

List<IssueLinkWithDirection>

issue.getIssueLinks(Long linkTypeId, String direction) 

Returns a list of issue links from/to the current issue with a specific link type and direction. This can be used to set the Linked Issues field.

linkTypeId: A number representing the link type id (e.g. 10300 ).

direction: The link type direction (outward or inward)

List<IssueLinkWithDirection>

getLinkedIssues()

Returns 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 getParentObject() and getSubTaskObjects() for that), Epic-Story (seegetEpic()andgetStories()for that) and Parent-Child portfolio (see getPortfolioParent() and getPortfolioChildIssues() for that)

None

List<Issue>

getLinkedIssues(String linkType)

Returns 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.

linkType: A string representing  the name of a link type, as it appears on the issueview (e.g. blocks or is blocked by).

List<Issue>

getLinkedIssues(Long linkTypeId, String direction) 

Returns a  list of issues linked to the current issue (including the issue links being added on the transition screen during a transition) through the specified link type Id and direction.

For example: getLinkedIssues(10301, “inward”) returns issues linked inward to the current issue through the link type with Id 10301.

linkTypeID: A number representing the link type id (e.g. 10300 ).

direction: The link type direction (outward or inward)

List<Issue>

getOutwardIssueLinks()

Returns a list of outward issue links from the issue, an empty list if there are no outward issue links.

None

List<IssueLink>

Returns the parent Issue, or null if the issue is not a subtask.

None

Issue

getPortfolioChildIssues()

Returns a list of issues linked to the current issue through the "is parent of (Portfolio child Issues)" link type

None

List<Issue>

getPortfolioParent()

Returns the issue linked to the current issue through the "is child of (Portfolio Parent Link)", or null if the issue is not a child.

None

Issue

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.