Hi All,
Today > issue version(start date of the issue version)
if it is true.we should not allow transition and show the error message. To allow transition,we have to check the 'Late Approval' check box.
we have installed script runner plugin.
can any know the syntax for this validation?
Thanks & Regards,
Suresh
Community moderators have prevented the ability to post new answers.
Hi Suresh
You can try this script
def today = new Date()
for (version in issue.getAffectedVersions() ) {
if ( today > version.getStartDate() ) {
return cfValues['Late Approval'] == 'Late Approval'
}
}
return true
Note: This will check all the affected versions (fixed or not). If the issue is not assigned in a version it returns true, therefore is valid.
Please let me know if this script helps you
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.