Help on Script Validator using issue type and value in a custom field

Rajesh Kumar Maduraiveeran June 23, 2015

Hello,

I am trying to setup a validator in JIRA. If the work item type is "DB Object Mig - Index Request", I need a particular check box to be checked mandatorily before moving to the next status. But the code below is making the field mandatory for all the work item types. All 4 work item types that I am referring to here uses the same work flow and the check box is shared by all of them. Can someone suggest whats wrong here

(issue.issueTypeObject.name == 'DB Object Mig - Index Request' && cfValues['BG Impact Review Completed']*.value.contains("Yes")) 

2 answers

0 votes
Rajesh Kumar Maduraiveeran June 24, 2015

Hi Jamie, the BG Impact is a check box.

0 votes
JamieA
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.
June 23, 2015

Can you break that into the two component parts, and try them individually to see which is the issue. What type of field is BG Impact...? Please use scriptrunner label too in future.

Suggest an answer

Log in or Sign up to answer