How to set custom text field beign collapsed by default?

Using JIRA 6.2 standalone.

There is a custom text field (multi-line) expanded by default In the JIRA issue view screen. How can we set it collapsed by default (right after creation e.g.)?





3 answers

Not sure if you can do that with the JIRA Multi Line Custom field natively.

If you really want to hack it, just put a javascript in (anywhere in the create Screen or in the custom field descrption) to explicitly collapse it. Find the div ID then put a class attribute like this:

<div id="field-customfield_xxxx" class="twixi-block collapsed">

I put this code in the field description (replacing id), but it didn't affect neither the new nor the previously created issues. Anyway, thanks for the idea.

Get the html codes and find the right code. Maybe I got it wrong or we have different JIRA versions.

I've checked, the HTML code is correct. But it is ignored for some reasons. If I expand field at any issue, it expands in other issues too, as well as in the just created issues (class="twixi-block expanded). If I collapse field, same things happens everywhere (class="twixi-block collapsed).

Yep. JIRA will remember your personal settings on stuff (what tabs are opened, what sections are expanded)

I need the same functionality. Did you come up with anything?

Yes I was able to make this work on Jira 7.5 server. Use the below html code in the custom field description. Replace the custom field Id to the correct one.

<script type="text/javascript">
AJS.$(document).ready(function() {



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,307 views 14 20
Join discussion

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