Unable to hide Checkbox using Behaviour Plugin

hi Jamie,

I am unable to hide a cutom field which is of the type "Checkbox" using Behaviours plugin . My Jira version is jira 4.2.4 .The field is present in both the create and edit screen .What could be going wrong? Its a simple hide function without any condition added or validation added.

2 answers

I don't know if you still have this issue or not but the solution is in version of JIRA Behaviours plugin. I have an environment with version 0.2.8 and I'm not able to hide or make the checkbox field read-only. In the other environment with version 0.5.10 of the plugin, I can hide the mentioned field and make it read-only.

0 votes

This has been discussed in answers before, you might want to check https://answers.atlassian.com/questions/2344/how-to-hide-a-checkbox-custom-field?page=1#2368

Hi Zulfadli,

Its not a javascript hide , the checkbox is going to be hidden , when the issue is to be edited by people in certain project roles and a specific field is set for the checkbox.That's why I am going for the behaviour plugin

Correct, you have to use the Hidden When or Hidden Except in the Behaviour plugin. Then, still in the Behaviour plugin add a serverside script, copy the line in the above link to the Script box. Make sure you change the customfield id. This should work.

But In the server validation , we can give only groovy validation , there is no place to add Java script snippet

Ouch. I was not aware that in 0.3.4 there is no script box for it. Sorry :(

Hi Jamie,

How to add "Hide" behaviour for the select box .The groovy hide works for radio button , text field, but not working for select box.

My Jira version is 4.2.4 .How to do that ?


You add groovy code, not javascript.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

475 views 8 27
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you