The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champions.
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.