I have already found a way that I could get these values but is not straightforward. Is there perhaps a faster way to get the initial values? The following steps are how I am going to implement my idea:
- Check in the changelogGroup ArrayList of an Issue, for all the changes under item. If for the first time that a field (e.g. status) occurs and the fromString value is not null then this was the initial value of the issue. Repeat this step until there are no new field names.
- For all the field names of an Issue that were not found in the changelogGroup ArrayList these are the initial values. For the remaining, the values found in step 1 are the initial values.