Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

If today > jira start date(version date) then we need 'Late Approval' must be checked?

Suresh August 5, 2015

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Thanos Batagiannis _Adaptavist_
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.
October 26, 2015

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

TAGS
AUG Leaders

Atlassian Community Events