Validator to make sure fix version >= affects version on resolving issue

Venkat Patchigolla July 19, 2015

Hi All,

Is there a validator available to check that fix version is >= affects version on resolving issue.

Any plugin which has this validation feature or any groovy script available to do this?

For this first we have to maintain order of versions in a project correctly.

Regards,

Venkat

 

1 answer

1 vote
Vijay Khacharia
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 20, 2015

Hi

May be you can compare the release dates of the fix version and affects version.

issue.getFixVersions().iterator().next().getReleaseDate().compareTo(issue.getAffectedVersions().iterator().next().getReleaseDate())

Here I assume there is just one fixversion and affects version.

Regards,

Vijay

Venkat Patchigolla July 20, 2015

Thanks Vijay. I will try to use your suggestion.

Suggest an answer

Log in or Sign up to answer