public interface Issue
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_MAX_SIZE
Maximum number of characters in the message.
|
static java.lang.String |
RESOLUTION_FALSE_POSITIVE
Resolution when issue is flagged as false positive.
|
static java.lang.String |
RESOLUTION_FIXED |
static java.lang.String |
RESOLUTION_REMOVED
Resolution when rule has been uninstalled or disabled in the Quality profile.
|
static java.lang.String |
RESOLUTION_WONT_FIX
Issue is irrelevant in the context and was muted by user.
|
static java.util.List<java.lang.String> |
RESOLUTIONS |
static java.lang.String |
STATUS_CLOSED |
static java.lang.String |
STATUS_CONFIRMED |
static java.lang.String |
STATUS_OPEN
Default status when creating an issue.
|
static java.lang.String |
STATUS_REOPENED |
static java.lang.String |
STATUS_RESOLVED |
static java.util.List<java.lang.String> |
STATUSES
Return all available statuses
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assignee()
UUID of the user who is assigned to this issue.
|
java.lang.String |
attribute(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.String> |
attributes()
Empty on batch side since version 5.2.
|
java.lang.String |
authorLogin()
Login of the SCM account that introduced this issue.
|
java.util.Date |
closeDate()
Date when status was set to
STATUS_CLOSED , else null. |
java.util.List<IssueComment> |
comments()
Deprecated.
since 7.2, comments are not more available
|
java.lang.String |
componentKey()
Components are modules ("my_project"), directories ("my_project:my/dir") or files ("my_project:my/file.c").
|
java.lang.String |
componentUuid() |
java.util.Date |
creationDate() |
Duration |
effort() |
java.lang.Double |
gap()
Arbitrary distance to threshold for resolving the issue.
|
boolean |
isCopied()
During a scan returns true if the issue is copied from another branch.
|
boolean |
isNew()
During a scan return if the current issue is a new one.
|
java.lang.String |
key()
Unique generated key.
|
java.lang.String |
language() |
java.lang.Integer |
line()
Optional line number.
|
java.lang.String |
message() |
java.lang.String |
projectKey() |
java.lang.String |
projectUuid() |
java.lang.String |
resolution()
The type of resolution, or null if the issue is not resolved.
|
RuleKey |
ruleKey() |
java.lang.String |
severity()
See constants in
Severity . |
java.lang.String |
status()
See constant values in
Issue . |
java.util.Collection<java.lang.String> |
tags() |
java.util.Date |
updateDate() |
static final int MESSAGE_MAX_SIZE
static final java.lang.String STATUS_OPEN
static final java.lang.String STATUS_CONFIRMED
static final java.lang.String STATUS_REOPENED
static final java.lang.String STATUS_RESOLVED
static final java.lang.String STATUS_CLOSED
static final java.lang.String RESOLUTION_FIXED
static final java.lang.String RESOLUTION_FALSE_POSITIVE
static final java.lang.String RESOLUTION_REMOVED
static final java.lang.String RESOLUTION_WONT_FIX
static final java.util.List<java.lang.String> RESOLUTIONS
static final java.util.List<java.lang.String> STATUSES
java.lang.String key()
java.lang.String componentKey()
RuleKey ruleKey()
java.lang.String language()
java.lang.String severity()
Severity
.@CheckForNull java.lang.String message()
@CheckForNull java.lang.Integer line()
@CheckForNull java.lang.Double gap()
java.lang.String status()
Issue
.@CheckForNull java.lang.String resolution()
Issue
.@CheckForNull java.lang.String assignee()
java.util.Date creationDate()
java.util.Date updateDate()
@CheckForNull java.util.Date closeDate()
STATUS_CLOSED
, else null.@CheckForNull java.lang.String attribute(java.lang.String key)
java.util.Map<java.lang.String,java.lang.String> attributes()
@CheckForNull java.lang.String authorLogin()
@Deprecated java.util.List<IssueComment> comments()
boolean isNew()
boolean isCopied()
@CheckForNull Duration effort()
java.lang.String projectKey()
java.lang.String projectUuid()
java.lang.String componentUuid()
java.util.Collection<java.lang.String> tags()