That custom field is taken from another DB (linked via Elements) and it's the quantity of a particular item, if the quantity is less than 0 the ticket should throw an exception but it doesnt work as i would..
I'm putting this "Groovy inline script" in the validator the issue creation.
Hello,
i need to block the creation of an issue if a custom field value is less than 1.
I tried with the attached code with no success, the custom field ID is: 13200.
The log, due to its length, is attached to this request as a .txt file.
log.txt
That custom field is taken from another DB (linked via Elements) and it's the quantity of a particular item, if the quantity is less than 0 the ticket should throw an exception but it doesnt work as i would..
I'm putting this "Groovy inline script" in the validator the issue creation.
Thanks for your help, Regards,
Luca