jetbrains.buildServer.issueTracker
Interface Issue


public interface Issue

Represents an issue from the issue-tracking system.

This interface is close to IssueData, but added for future extensibility. The issue-tracker plugins should use IssueData class.

Since:
5.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllFields()
          Returns all issue fields as a map (unmodifiable).
 java.lang.String getId()
          Returns the issue id.
 java.lang.String getPriority()
          Returns the issue priority (e.g.
 IssueProvider getProvider()
          Returns a corresponding provider for this issue.
 java.lang.String getSeverity()
          Returns the issue severity (e.g.
 java.lang.String getState()
          Returns the issue state (e.g.
 java.lang.String getSummary()
          Returns the issue summary (a single line which describes the issue briefly).
 java.lang.String getType()
          Returns the issue type (e.g.
 java.lang.String getUrl()
          Returns the URL corresponding to the issue.
 boolean isFeatureRequest()
          Returns whether the issue is a feature request (enhancement).
 boolean isResolved()
          Returns whether the issue is resolved (possibly as "won't fix").
 

Method Detail

getId

@NotNull
java.lang.String getId()
Returns the issue id. The id is generated by the issue tracker and is considered immutable.

Returns:
issue id

getType

@NotNull
java.lang.String getType()
Returns the issue type (e.g. bug, feature, exception, etc). Returns an empty string if the notion of type is not applicable.

Returns:
the issue type
Since:
7.1

getSummary

@NotNull
java.lang.String getSummary()
Returns the issue summary (a single line which describes the issue briefly).

Returns:
issue summary

getState

@NotNull
java.lang.String getState()
Returns the issue state (e.g. open, fixed, etc.). Returns an empty string if the notion of state is not applicable.

Returns:
the issue state

getPriority

@NotNull
java.lang.String getPriority()
Returns the issue priority (e.g. P1, P2, or normal, etc.). Returns an empty string if the notion of priority is not applicable.

Returns:
the issue priority
Since:
7.1

getSeverity

@NotNull
java.lang.String getSeverity()
Returns the issue severity (e.g. normal, major, blocker, etc.). Returns an empty string if the notion of severity is not applicable.

Returns:
the issue severity
Since:
7.1

isResolved

boolean isResolved()
Returns whether the issue is resolved (possibly as "won't fix").

Returns:
true if the issue is resolved

isFeatureRequest

boolean isFeatureRequest()
Returns whether the issue is a feature request (enhancement).

Returns:
true if the issue is a feature request
Since:
7.1

getAllFields

@NotNull
java.util.Map<java.lang.String,java.lang.String> getAllFields()
Returns all issue fields as a map (unmodifiable).

Returns:
a map of issue fields
Since:
7.1

getUrl

@Nullable
java.lang.String getUrl()
Returns the URL corresponding to the issue.

Returns:
corresponding URL

getProvider

@NotNull
IssueProvider getProvider()
Returns a corresponding provider for this issue.

Returns:
a corresponding provider
Since:
8.0