public class

ChangeHistoryUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.util.ChangeHistoryUtils

Summary

Constants
String CHANGED_FROM
String LINE_ENDING
String SET_TO
String TERMINATOR
String TERMINATOR_BR
String TO
String WAS_ADDED
String WAS_REMOVED
Public Constructors
ChangeHistoryUtils()
Public Methods
static String highlight(String body, String colour)
Highlight a change log by breaking it into separate lines and highlighting each one
static String highlightLine(String line, String colour)
There are a few different types of change logs, each appearing on separate lines: [Field] changed from [foo] to [bar] [Field] set to [foo] [Version] [X] was added [Version] [Y] was removed
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CHANGED_FROM

Constant Value: "] changed from ["

public static final String LINE_ENDING

Constant Value: "]"

public static final String SET_TO

Constant Value: "] set to ["

public static final String TERMINATOR

Constant Value: " "

public static final String TERMINATOR_BR

Constant Value: "
"

public static final String TO

Constant Value: "] to ["

public static final String WAS_ADDED

Constant Value: "] was added"

public static final String WAS_REMOVED

Constant Value: "] was removed"

Public Constructors

public ChangeHistoryUtils ()

Public Methods

public static String highlight (String body, String colour)

Highlight a change log by breaking it into separate lines and highlighting each one

public static String highlightLine (String line, String colour)

There are a few different types of change logs, each appearing on separate lines: [Field] changed from [foo] to [bar] [Field] set to [foo] [Version] [X] was added [Version] [Y] was removed