in JIRA UI (Issue View) history everything is OK
but when I am accessing the History Bean in a script I get null in from and too values
although the values are presented in the History list
same code show values of other Custom Fields
any insight on that?
This is the Code:
def HistoryOfCurrentIssue = ComponentAccessor.getChangeHistoryManager().getAllChangeItems(issue)
def LastChangeOffIssue = HistoryOfCurrentIssue.listIterator()[HistoryOfCurrentIssue.size()-1]
def StringToOutPut = LastChangeOffIssue.created.toString()+"/"+LastChangeOffIssue.getFroms().values().toString()+"/"+LastChangeOffIssue.getTos().values().toString()+"/"+LastChangeOffIssue.getField()+"/"+LastChangeOffIssue.getUserKey()
return StringToOutPut
Line 1 & 2 get the last History Bean of the issue (assume an issue is known)
line 3 - extract the data from the bean and prepare a string to print
line 4 - print the string
This is the Result:

format is <date>/<from value>/<to value>/<field changed>/<user that made the change>
in this case from value and to value are null
and this is how it shows in the UI

as you can see from value and to value are not null