Forums

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

Unable to validate the script field during the transition

Ravi Kumar Boddu September 1, 2021

Script field added into the validator while moving the transition to closed however validation is not successful even after entering the sprint name or sprint value but still field validation says "Sprint" is required.

Need your help to validate the script field during the transition and any inputs would be appriciated.

1 answer

0 votes
Nic Brough -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.
September 1, 2021

Sprint probably should not be a scripted field, but that's not the important bit.

Scripted fields are updated after validation, not before.  Their "input", which a validator will look at is not taken from the person doing the transition, it is the value that was in there before you started the transition

It sounds like your validator is doing a simple "fail if Sprint is empty", so it's failing your transition because Sprint was empty when you started the transition.  It wouldn't have a value until after the transition has completed.

You should try validating the value(s) that the scripted field will use to calculate the new value of sprint at the end of the transition.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events