Class IssueData
- java.lang.Object
-
- jetbrains.buildServer.issueTracker.IssueData
-
- All Implemented Interfaces:
Serializable
public class IssueData extends Object implements Serializable
Represents the class for the data fetched from the issue-tracker.The class is expected to be used by TeamCity plugins to return issue-related data. Note that TeamCity creates a wrapper around this data (that implements a more generic interface, see
Issue).Implements
Serializableto support persisting of fetched issues on disk (cache).- Since:
- 5.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRIORITY_FIELDstatic StringSEVERITY_FIELDstatic StringSTATE_FIELDstatic StringSUMMARY_FIELDstatic StringTYPE_FIELD
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,String>getAllFields()Returns all issue fields as a map (unmodifiable).StringgetId()Returns the issue id.StringgetPriority()Returns the issue priority (e.g.StringgetSeverity()Returns the issue severity (e.g.StringgetState()Returns the issue state (e.g.StringgetSummary()Returns the issue summary (a single line which describes the issue briefly).StringgetType()Returns the issue type (e.g.StringgetUrl()Returns the URL corresponding to the issue.inthashCode()booleanisFeatureRequest()Returns whether the issue is a feature request (enhancement).booleanisResolved()Returns whether the issue is resolved (possibly as "won't fix").StringtoString()
-
-
-
Field Detail
-
SUMMARY_FIELD
public static final String SUMMARY_FIELD
- See Also:
- Constant Field Values
-
STATE_FIELD
public static final String STATE_FIELD
- See Also:
- Constant Field Values
-
TYPE_FIELD
public static final String TYPE_FIELD
- See Also:
- Constant Field Values
-
PRIORITY_FIELD
public static final String PRIORITY_FIELD
- See Also:
- Constant Field Values
-
SEVERITY_FIELD
public static final String SEVERITY_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
@NotNull public String getId()
Returns the issue id. The id is generated by the issue tracker and is considered immutable.- Returns:
- issue id
-
getType
@NotNull public 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 public String getSummary()
Returns the issue summary (a single line which describes the issue briefly).- Returns:
- issue summary
-
getState
@NotNull public 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 public 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 public 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
public boolean isResolved()
Returns whether the issue is resolved (possibly as "won't fix").- Returns:
- true if the issue is resolved
-
isFeatureRequest
public 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 public Map<String,String> getAllFields()
Returns all issue fields as a map (unmodifiable).- Returns:
- a map of issue fields
- Since:
- 7.1
-
getUrl
@NotNull public String getUrl()
Returns the URL corresponding to the issue.- Returns:
- corresponding URL
-
-