Unable to hide Checkbox using Behaviour Plugin

Srividhya November 11, 2012

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

1 vote
Eduardo Marques February 3, 2014

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
Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2012

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

Srividhya November 11, 2012

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

Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2012

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.

Srividhya November 11, 2012

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

Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2012

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

Srividhya November 11, 2012

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 ?

Thanks

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.
November 11, 2012

You add groovy code, not javascript.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events