@PublicApi public class

ChangeHistory

extends Object
implements WithId
java.lang.Object
   ↳ com.atlassian.jira.issue.changehistory.ChangeHistory

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Represents an issue change history.
ChangeHistory is essentially a GenericValue wrapper with getters

See Also
  • com.atlassian.jira.issue.changehistory.ChangeHistoryManager#getChangeHistoriesForUser(com.atlassian.jira.issue.Issue, User)

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
Public Constructors
ChangeHistory(GenericValue changeHistoryGV, IssueManager issueManager)
ChangeHistory(GenericValue changeHistoryGV, IssueManager issueManager, UserManager userManager)
Public Methods
String getAuthor()
This method is deprecated. Use getAuthorKey() instead. Since v6.0.
String getAuthorDisplayName()
Returns the display name of the author of this Change
String getAuthorKey()
Returns the userkey of the author of this Change
ApplicationUser getAuthorObject()
Returns the author of this Change
ApplicationUser getAuthorUser()
This method is deprecated. Use getAuthorObject() instead. Since v6.0.

Returns the author of this Change

List<ChangeItemBean> getChangeItemBeans()
List<GenericValue> getChangeItems()
String getComment()
String getFullName()
This method is deprecated. Use getAuthorDisplayName() instead. Since v5.0.
Long getId()
Issue getIssue()
Long getIssueId()
String getLevel()
Timestamp getTimePerformed()
String getUsername()
This method is deprecated. Use getAuthorObject() instead. Since v5.0.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId

Public Constructors

public ChangeHistory (GenericValue changeHistoryGV, IssueManager issueManager)

public ChangeHistory (GenericValue changeHistoryGV, IssueManager issueManager, UserManager userManager)

Public Methods

public String getAuthor ()

This method is deprecated.
Use getAuthorKey() instead. Since v6.0.

Returns the userkey of the author of this Change

Returns
  • the userkey of the author of this Change

public String getAuthorDisplayName ()

Returns the display name of the author of this Change

Returns
  • the display name of the author of this Change

public String getAuthorKey ()

Returns the userkey of the author of this Change

Returns
  • the userkey of the author of this Change

public ApplicationUser getAuthorObject ()

Returns the author of this Change

Returns
  • the author of this Change

public ApplicationUser getAuthorUser ()

This method is deprecated.
Use getAuthorObject() instead. Since v6.0.

Returns the author of this Change

Returns
  • the author of this Change

public List<ChangeItemBean> getChangeItemBeans ()

public List<GenericValue> getChangeItems ()

public String getComment ()

public String getFullName ()

This method is deprecated.
Use getAuthorDisplayName() instead. Since v5.0.

Returns the display name of the author of this Change

Returns
  • the display name of the author of this Change

public Long getId ()

public Issue getIssue ()

public Long getIssueId ()

public String getLevel ()

public Timestamp getTimePerformed ()

public String getUsername ()

This method is deprecated.
Use getAuthorObject() instead. Since v5.0.

Returns the author of this Change

Returns
  • the author of this Change