I've been looking at the Behaviours plugin, I want a blank free-text field to appear if "Other" field selection is selected in another field. Unfortunately, I can't get it to work due to my lack code writing knowledge.
|
put the validator on the select list. The validator code would be something like:
def selectList = getFieldById(getFieldChanged())
def blankTextField = getFieldByName("Some Text Field")
blankTextField.setHidden(selectList.getValue() == "Other")
You need to create a text field called "Some Text Field" and add to project, screens etc.
Thanks for your response Jamie. I haven't gotten a chance to try the validator yet because I came across another issue related to the Behaviour Plugin. I'm working on another project and whenever I tried to create an issue, I receive an error message "Error creating issue: Cannot invoke method getValidators() on null object". If I disable the Behaviour plugin, then it works and I'm able to create an issue. We are using JIRA v. 5.1.7 and I've tried running Behaviour v. 0.5.2 and 0.5.3. Thoughts?
Thank you,
Pei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.