How to hide and show a field depending on if it is empty or not

David May 3, 2022

We have an elements connect field that we want to hide and show depending on if it has options or not. We will be using script runner or behaviour.

2 answers

0 votes
Juliette Lallement _Elements Apps_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 4, 2022

Hi David

In the Cloud, it is not possible to hide a connected item if there are no values returned for it. I'm afraid you won't be able to use Behaviours in the Cloud: 

"At this time it is not possible to implement the Behaviours feature within ScriptRunner for Jira Cloud."


However, it is possible to have Behaviours scripts manipulate Elements Connect fields in Jira Server and Data Center:


I hope this helps.

0 votes
Jorge Martinez
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.
May 3, 2022

Hi @David  You could try configure Issue Layout in order to hide some fields when those are empty.


Nik C January 25, 2023

@Jorge Martinez I am trying to set this up, as you suggested but cant find the option to "Issue Layout", I am using Jira Data Center. Thanks

Dalhart Dobbs May 21, 2024

@Jorge Martinez is there any way that I can achieve this "hide when empty" feature for fields that are on a secondary tab of the same screen. It only allows me to edit in the screen configuration where I cannot select "Hide when Empty"

Suggest an answer

Log in or Sign up to answer