Easy way to get with Java the initial values of an Issue?

georgiossalon
Contributor
December 4, 2018

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:

  1. 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.
  2. 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.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events