The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Venkat Patchigolla
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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
Contributor
July 20, 2015

Thanks Vijay. I will try to use your suggestion.