How to hide label for message custom field(for view)

image2016-12-14 15:36:3.png

In the above image I dont want to see the label "Note". I am using message custom field (for view) and default value is set as below

<div id='Note' class="aui-message aui-message-info" style= "display:none">

<p class='title'><strong> xyz .....

<script type="text/javascript">
var currUrl = window.location.href;
if(currUrl.indexOf("BulkEditDetails") > -1 === false)
document.getElementById('Note').style.display = "block";

Any idea on how to hide the label or by default this custom field displays the label?

2 answers

1 accepted

1 votes
Volodymyr Krupach Community Champion Dec 14, 2016

You can do it by adding appropriate CSS or JavaScript to the announcement banner. All custom fields have the same DOM structure:

image2016-12-14 13:19:35.png

So you have to find id for your field and then add to the announcement banner something like:


#rowForcustomfield_10301 .wrap strong {
display: none;

Or do the same via jQuery. Please check this answer:

It worked. thanks


Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

423 views 1 14
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot