Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Behaviour issue - Message Custom Field not hiding


I'm having issues hiding Custom field type "Message Custom Field (for Edit)" using Behaviours.

The following Behaviour server-side script does not hide the Message Custom Field (customfield_13517) on the Create screen:

def singleIssuePicker = getFieldById("customfield_13515")
def messageCustomField = getFieldById("customfield_13517")
def partnerAgreementCf = getFieldById("customfield_13514")
def optionValue = partnerAgreementCf.getValue().toString()


if (optionValue == 'Yes') {
else if (optionValue == 'No') {


I've tested a few other custom field types which hide OK. Is there a difference with the Message Custom Field field type that does not allow it to be hidden like other fields? Is it possible to hide this field type using another method?

JIRA Server 8.3.4





1 answer

1 accepted

0 votes
Answer accepted

Hi @Andrew Henders this issue fix is mentioned in this link :-



  • Set the behaviour switch to “hide” and set “setHidden(false) in the server side script do the job

Thanks for the reply Vikrant.

I tried the suggested fix "Set the behaviour switch to “hide” and set setHidden(false) in the server-side script do the job" but the field is still showing.

Note that I'm not using this addon "Message field by JiBrok". I believe I'm using the inbuilt Atlassian field "Message Custom Field (for edit)"

Screen Shot 2020-10-08 at 3.32.45 pm.pngScreen Shot 2020-10-08 at 3.28.28 pm.png

JiBrok Marketplace Partner Oct 07, 2020

I'm not using this addon "Message field by JiBrok" 


Like Andrew Henders likes this
JiBrok Marketplace Partner Oct 07, 2020

You are using a field from the Toolkit Plugin for Jira. As far as I know, this field can't be hidden using SR because it doesn't contain any IDs when displayed.

JiBrok Marketplace Partner Oct 07, 2020

I don't recommend doing this, but technically it will work.

image 2020-10-08 at 09.16.03.png

Add two such div tags above your message:

<div class="field-group">
<div id="customfield_sr_please_hide">

and in SR behaviour:

def field = getFieldById("customfield_sr_please_hide")
Like Vikrant Yadav likes this

Thanks for the update Vikrant. On a positive note, I've just installed and tested the Message Field by JiBrok on our test instance and it works. I'll perform a few more tests. Cheers again for the assistance.

Sorry, thanks JiBrok too!

Like JiBrok likes this

Hi @JiBrok Thanks for the solution, new solution for me. :)

We are using Message Field add-on.  this solution will help us. 

why you are not recommending to do this, is there any wrong impact on JIRA instance or effects other fields as well ?

JiBrok Marketplace Partner Oct 07, 2020

@Vikrant Yadav 

I don't think this will cause any problems with the service or the screen.

I don't recommend doing this, because it's not "obvious behavior", but a life hack :)

Now you remember about this decision but what about your colleagues? This solution works here and now. If something changes in the next version of Jira or SR, it may break.

Like Vikrant Yadav likes this

okay, thank you @JiBrok 

Like JiBrok likes this


 I have added ID but still its not hiding for me

Below are the default value

<div class="aui-message new">
<div id="customfield_sr_please_hide">
<p class="title">
<span class="aui-icon icon-warning"></span>
<strong>International ticket escalation</strong>
<p> Escalation will go to GICS project as product category contains "IAS" </p>



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

68 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you