Class RemoteIssueLink
- a JIRA issue on another JIRA server
- a Confluence page
- a ticket in a helpdesk system
- a test case in a testing system
- Since:
- v5.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteIssueLink
(Long id, Long issueId, String globalId, String title, String summary, String url, String iconUrl, String iconTitle, String relationship, Boolean resolved, String statusIconUrl, String statusIconTitle, String statusIconLink, String applicationType, String applicationName) RemoteIssueLink
(Long id, Long issueId, String globalId, String title, String summary, String url, String iconUrl, String iconTitle, String relationship, Boolean resolved, String statusIconUrl, String statusIconTitle, String statusIconLink, String applicationType, String applicationName, String statusName, String statusDescription, String statusCategoryKey, String statusCategoryColorName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the human-readable name of the remote application instance that contains the remote object.Returns the type of remote application that we are linking with.Returns a String which uniquely identifies the object in the remote application.Returns the tool tip text for theicon
.Returns a url for an icon to represent the remote object.getId()
Returns the id of the link.Returns the id of the issue we are linking with.Returns a String which describes the relationship between the JIRA issue and the remote object.Returns a hyperlink for thestatus icon
.Returns the tool tip text for thestatus icon
.Returns a url for an icon representing the status of the remote object.Returns a summary of the remote object.getTitle()
Returns a String to identify the remote object.getUrl()
Returns a url to the object in the remote application.int
hashCode()
boolean
Returns a Boolean to indicate whether the remote object is resolved or not.
-
Field Details
-
APPLICATION_TYPE_JIRA
-
APPLICATION_TYPE_CONFLUENCE
-
-
Constructor Details
-
RemoteIssueLink
-
RemoteIssueLink
public RemoteIssueLink(Long id, Long issueId, String globalId, String title, String summary, String url, String iconUrl, String iconTitle, String relationship, Boolean resolved, String statusIconUrl, String statusIconTitle, String statusIconLink, String applicationType, String applicationName, String statusName, String statusDescription, String statusCategoryKey, String statusCategoryColorName)
-
-
Method Details
-
getId
Returns the id of the link. This is used to refer to a link when updating and deleting.- Returns:
- the id of the link
-
getIssueId
Returns the id of the issue we are linking with.- Returns:
- the id of the issue we are linking with
-
getGlobalId
Returns a String which uniquely identifies the object in the remote application. This value must be unique across all remote objects in all remote applications. The maximum length of this field is 255 characters.For simplicity, this could simply be the
url
, although this is not wise if there is a chance the url may change.This value is not displayed in the JIRA user interface. We suggest including in this field any values that will be needed by a renderer plugin, for example the application url and remote object identifier to make REST calls.
For example: "url=http://www.myapplication.com&ticketid=12345"
- Returns:
- a String which uniquely identifies the object in the remote application
-
getTitle
Returns a String to identify the remote object. This is shown as the text for theurl
in the JIRA user interface.For example: a JIRA issue key, a Confluence page title, a helpdesk ticket number
- Returns:
- a String to identify the remote object
-
getSummary
Returns a summary of the remote object. This is shown after thetitle
in the JIRA user interface.For example: a JIRA issue summary, a helpdesk ticket title
- Returns:
- a summary of the remote object
-
getUrl
Returns a url to the object in the remote application.For example: a confluence page url
- Returns:
- a url to the object in the remote application
-
getIconUrl
Returns a url for an icon to represent the remote object. The size of the icon should be 16x16 pixels.For example: http://mycompany.com/jira/images/icons/bug.png
- Returns:
- a url for an icon to represent the remote object
-
getIconTitle
Returns the tool tip text for theicon
. TheapplicationName
is prepended to this value to form the icon tool tip text.For example: "Bug - A problem which impairs or prevents the functions of the product"
- Returns:
- the tool tip text for the
icon
-
getRelationship
Returns a String which describes the relationship between the JIRA issue and the remote object.For example: "relates to", "is mentioned in", "links to". It could even be a simple noun, such as "Test Case".
- Returns:
- a String which describes the relationship between the JIRA issue and the remote object
-
isResolved
Returns a Boolean to indicate whether the remote object is resolved or not. If the value is true, it is "resolved", and if the value is false, it is "unresolved". This value will only make sense where the remote object is something that is resolvable (eg. an issue, support ticket, etc). It will not make sense for things like wiki pages. In that case, the value should be null.If the value is true, the remote issue link be shown in a strikethrough font in the user interface.
- Returns:
- a Boolean to indicate whether the remote object is resolved or not
-
getStatusIconUrl
Returns a url for an icon representing the status of the remote object. The size of the icon should be 16x16 pixels. This icon is shown next to thesummary
in the JIRA user interface, and is right justified. This icon does not have to strictly represent a "status", and may instead represent some secondary information about the link.For example: the status of a JIRA issue, the author of a test case
- Returns:
- a url for an icon representing the status of the remote object
-
getStatusIconTitle
Returns the tool tip text for thestatus icon
. If null, no tool tip text is shown. This value is not used if thestatusIconUrl
is null.- Returns:
- the tool tip text for the
status icon
-
getStatusIconLink
Returns a hyperlink for thestatus icon
. If null, no hyperlink is shown. This value is not used if thestatusIconUrl
is null.- Returns:
- a hyperlink for the
status icon
-
getApplicationType
Returns the type of remote application that we are linking with. This should be the product name, namespaced with the product company. This value is not displayed in the JIRA user interface. Links are grouped based on the applicationType andapplicationName
in the user interface.Renderering plugins can register to render a certain type of application. It is not possible to use a plugin to render links without an applicationType.
For example: "com.atlassian.confluence", "com.mycompany.myproduct"
- Returns:
- the type of remote application that we are linking with
-
getApplicationName
Returns the human-readable name of the remote application instance that contains the remote object. Links are grouped based on theapplicationType
and applicationName in the user interface. The applicationName is prepended to theiconTitle
to form the icon tool tip text.For example: "My Company's Confluence", "HR JIRA", "Helpdesk JIRA"
- Returns:
- the human-readable name of the remote application instance that contains the remote object
-
getStatusName
-
getStatusDescription
-
getStatusCategoryKey
-
getStatusCategoryColorName
-
hasStatusCategory
public boolean hasStatusCategory() -
equals
-
hashCode
public int hashCode()
-