Hi
I am using the below in a scripted field
changeHistoryManager.getChangeItemsForField(issue, "status")
which is returning the below :
[com.atlassian.jira.issue.history.ChangeItemBean@4cbf004a[fieldType=jira,field=status,from=10002,fromString=In Development,to=10009,toString=Blocked,created=2021-06-12 01:06:52.792], com.atlassian.jira.issue.history.ChangeItemBean@1c19d69c[fieldType=jira,field=status,from=10009,fromString=Blocked,to=10184,toString=In Design,created=2021-06-12 01:07:05.427], com.atlassian.jira.issue.history.ChangeItemBean@785e386e[fieldType=jira,field=status,from=10002,fromString=In Development,to=10009,toString=Blocked,created=2021-06-12 01:35:41.529], com.atlassian.jira.issue.history.ChangeItemBean@4ee968a0[fieldType=jira,field=status,from=10009,fromString=Blocked,to=10008,toString=Done,created=2021-06-12 01:36:08.516], com.atlassian.jira.issue.history.ChangeItemBean@7a608c67[fieldType=jira,field=status,from=10008,fromString=Done,to=10021,toString=Cancelled,created=2021-06-12 01:37:32.262], com.atlassian.jira.issue.history.ChangeItemBean@289f1881[fieldType=jira,field=status,from=10002,fromString=In Development,to=10009,toString=Blocked,created=2021-06-12 01:42:44.575], com.atlassian.jira.issue.history.ChangeItemBean@218bc8b4[fieldType=jira,field=status,from=10009,fromString=Blocked,to=10184,toString=In Design,created=2021-06-12 01:43:02.087], com.atlassian.jira.issue.history.ChangeItemBean@2422184d[fieldType=jira,field=status,from=19123,fromString=Requires Design,to=10184,toString=In Design,created=2021-06-12 01:56:11.607], com.atlassian.jira.issue.history.ChangeItemBean@5a5fbb1a[fieldType=jira,field=status,from=10002,fromString=In Development,to=10009,toString=Blocked,created=2021-06-12 02:04:08.493]]
I need to know how I can extract only the fromString and toString and their values and save them in a list/map in the same order they appear above.
the list I mean is like for example :
[[fromString=In Development, toString=Blocked ] , [fromString=Blocked, toString=Cancelled ] ]