@Immutable @PublicApi public class ChangeHistoryItem extends Object implements Comparable<ChangeHistoryItem>
In 4.4 the behaviour of this domain object was changed to add support for changes that can can have multi value states for instance an affectedVersion could change from the state "4.4 4.4.1" -> "4.4 4.4.1 4.4.2" To this end end extra methods are added getFroms(), getTos() that return a map of all the changes in a single change item getFrom and getTo will return the first change in this list, this will not break behaviour for any of the supported single value fields. For Versions and other multi value fields the behaviour of getFrom(), getTo(), getFromValue() and get ToValue() will return only the first change in the map. It is preferred to use getFroms and getTos in this case. getFrom(), getTo(), getFromValue() and getToValue() are therefore all marked as deprecated and may be removed in future versions.
Modifier and Type | Class and Description |
---|---|
static class |
ChangeHistoryItem.Builder |
Constructor and Description |
---|
ChangeHistoryItem(Long id,
Long changeGroupId,
Long projectId,
Long issueId,
String issueKey,
String field,
Timestamp created,
String from,
String to,
String fromValue,
String toValue,
String userKey) |
ChangeHistoryItem(Long id,
Long changeGroupId,
Long projectId,
Long issueId,
String issueKey,
String field,
Timestamp created,
Timestamp nextChange,
String from,
String to,
String fromValue,
String toValue,
String userKey) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ChangeHistoryItem other) |
boolean |
containsFromValue(String fromValue) |
boolean |
containsToValue(String toValue) |
boolean |
equals(Object o) |
Long |
getChangeGroupId() |
Timestamp |
getCreated() |
Long |
getDuration() |
String |
getField() |
String |
getFrom()
Deprecated.
As of 4.4.2, prefer to use
getFroms() |
Map<String,String> |
getFroms() |
String |
getFromValue()
Deprecated.
As of 4.4.2, prefer to use
getFroms() |
Long |
getId() |
Long |
getIssueId() |
String |
getIssueKey() |
Timestamp |
getNextChangeCreated() |
Long |
getProjectId() |
String |
getTo()
Deprecated.
As of 4.4.2, prefer to use
getTos() } |
Map<String,String> |
getTos() |
String |
getToValue()
Deprecated.
As of 4.4.2, prefer to use
getTos() |
String |
getUser()
Deprecated.
Use
getUserKey() instead (for clarity only). Since v6.0. |
String |
getUserKey() |
int |
hashCode() |
String |
toString() |
public ChangeHistoryItem(Long id, Long changeGroupId, Long projectId, Long issueId, String issueKey, String field, Timestamp created, String from, String to, String fromValue, String toValue, String userKey)
public Long getId()
public Long getChangeGroupId()
@Deprecated public String getUser()
getUserKey()
instead (for clarity only). Since v6.0.public String getUserKey()
public Long getProjectId()
public Long getIssueId()
public String getIssueKey()
public Timestamp getCreated()
@Deprecated public String getFrom()
getFroms()
@Deprecated public String getTo()
getTos()
}@Deprecated public String getFromValue()
getFroms()
@Deprecated public String getToValue()
getTos()
public String getField()
public Timestamp getNextChangeCreated()
public Long getDuration()
public boolean containsFromValue(String fromValue)
public boolean containsToValue(String toValue)
public int compareTo(ChangeHistoryItem other)
compareTo
in interface Comparable<ChangeHistoryItem>
Copyright © 2002-2022 Atlassian. All Rights Reserved.