Hiding custom fields using Behaviours plugin or Script Runner

Hi all,

We have a requirement to hide custom fields from a certain group of JIRA users.
I have read the long discussion on why Atlassian will not implement this as a feature, and I was really hopeful that the Behaviours plugin can do this until we hit bulk editing issues.

I am hoping that someone can help to confirm a few things:

  1. Is it true that hiding custom fields using Behaviours plugin will disable bulk edit (or bulk move in our case) for all issues across all projects? If yes, does anyone has a work-around? Because this is what we are experiencing now even after mapping the behaviour only to some projects and issue types.
  2. I can't seem to find the hiding custom fields feature in Script Runner (which replaces Behaviours plugin), is it true that this feature is not part of Script Runner?
  3. Do you know which other plugin or safe method that can achieve this requirement? We're aware of the Field Security Plugin, however we're trying to avoid it due to the complexity of its installation (& hence maintenance), as well as its limited support of other plugins.

Thank you for your time!

1 answer

0 vote

Is it true that hiding custom fields using Behaviours plugin will disable bulk edit (or bulk move in our case) for all issues across all projects?

No, it will disable inline edit for fields where the behaviour is applied. Inline edit is completely different from bulk edit. Behaviours doesn't work with bulk edit, which is why you need to back up behaviours with validators if security is an issue. Behaviours should be used to "guide" users, rather than enforce.

I can't seem to find the hiding custom fields feature in Script Runner (which replaces Behaviours plugin), is it true that this feature is not part of Script Runner?

It doesn't replace it, it is merged with it. All the behaviours stuff is in Script Runner.

Behaviours should work with bulk edit if you create fields of type "Hidden Text Field" and so on... but that feature needs a lot of love and I don't really recommend its usage right at the moment.

Sorry I can't really help with alternatives, I have never tested anything else that has this feature, but I just wanted to clear up some of these misconceptions.




Hi Jamie, Thanks for your swift respond and sorry for my misunderstanding regarding the Behaviour plugin being replaced by Script Runner (I get it now that it's more of: "incorporated" rather than "replaced"). Yes we're using the custom field with the type of Hidden Text Field and it is breaking bulk edit for all projects in our installation (even projects that are not associated with the Hidden Text Field). The error message points to java.lang.NullPointerException: Cannot invoke method getValidators() on null object and multiple lines points to the hidden field e.g. : at com.onresolve.jira.behaviours.customfields.AbstractHideableCFType.isHidden(AbstractHideableCFType.groovy:42) I think I will raise an issue at your issue tracker, hopefully you'll have time to look at it and have an idea what went wrong. Thanks!

yes, this is the love I was referring to... I hope I will have time to fix it but not sure exactly when.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

696 views 6 13
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