changeHistoryManager.getAllChangeItems does not work properly for the cascading fields

Parisa Kabiri September 13, 2018

Use following code to get list of ChangeHistoryItem on a 'Cascading Field' named Category:
List<ChangeHistoryItem> historyChanges =

ChangeHistoryManager changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
List<ChangeHistoryItem> historyChanges = changeHistoryManager.getAllChangeItems(getEvent().getIssue()).findAll {
it.getField().equalsIgnoreCase("Category") && it.getChangeGroupId() == getEvent().getChangeLog()["id"]
}


Then if we call 

historyChanges*.getTos() always is empty.

and historyChanges*.getTo() or getToValues() always is null.

1 answer

0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2018

+1 for bug.

Suggest an answer

Log in or Sign up to answer