Using behaviours plugin to make field required on condition

I am trying to implement that on the selection of a particular component that another custom field becomes required. I am trying to do this in the behaviours plugin

Behaviour plugin Version: 0.5.10JIRA Version 6.0.4 Build Number 6100

I have placed the following in the serverside script box and turned logging on.. however nothing seems to be happeneing when I enter or edit a new bug where Cameras is selected as a component and the Camera field is left empty... I was expecting an error. Any suggestions as to whats missing?

I turned logging on but dont see anything in th log window when I use F12 on the browser.

Thanks for the reply. I have checked atlassian-jira.log but dont see any of my debug output. Deebug is turned on in the behaviours plugin and I have added log.debug messages in various places. It makes me wonder if the serverside script is not being called?

In the behaviours plugin I have put the serverside script on the components field. I made no changes to the Camera field.

Nick

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

[onresolve.jira.groovy.BehaviourManagerImpl] Found class but could not find method rungroovy.lang.MissingPropertyException: No such property: getValue for class: com.onresolve.jira.groovy.user.FormField

which is related to:

if (componentField.getValue*.name.contains("Cameras"))

where

FormField componentField = getFieldByName("Component/s")

the easy question is to ask if someone can help with what is wrong. But also can someone point me to the documentation etc where I can see what methods are in what classes etc.

thanks

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...