Getting JIRA FixVersion Changes

gil September 29, 2017

Hello All - I have this JIRA API code to get the FixVersion changes:

FVs = event.getChangeLog().getRelated("ChildChangeItem").find{it.field == "Fix Version"};

System.out.println(FVs.oldstring);

System.out.println(FVs.newstring);

 

It looks like only 1 FixVersion is displayed for oldstring and newstring, even thought I populate 2 new FixVersions in the field.   Example:

 

* Before issue update, the field has 2 FVs.

* After issue update, the field has total of 4 FVs.

I would expect to see 2 new FixVersion.  The oldstring and new string always show 1 FixVersion.  What am I missing here?  Thanks.

0 answers

Suggest an answer

Log in or Sign up to answer