Make custom field appear bold in issue create screen

My Jira version is 6.2.7. I need to make some custom fields on create screen appear bold. I tried the solution provided on this linkhttps://answers.atlassian.com/questions/183548/how-to-apply-html-style-or-font-weight-for-custom-field-name-not-for-valuebut it does not seems to be working.

Also I came across this linkhttps://confluence.atlassian.com/display/JIRA/Fields+Allowing+Custom+HTML+or+JavaScriptwhich says that custom html and javascript is not allowed with Jira v.6.2.x and above. So is there any way to make the customs fields bold.

Below are the lines I tried pasting in Custom field description field.

Try1:

<script type="text/javascript">

AJS.$('#customfield_19744').parent().children().first().attr("style","font-weight: bold")

</script>

Try2:

<script type="text/javascript">

a = document.getElementById('customfield_19744').parentNode;

a.setAttribute('style', 'font-weight:bold');

</script>

1 answer

0 vote

You can no longer do this in fields, it has to be done by hacking the .jsp files in the core of Jira or in the announcement banner field.

Do you mean that making the custom fields bolder on create screen is possible but it has to be done by doing changes in .jsp files. If yes please let us know the file names or path where we can find them.

Or by injecting it in the announcement banner.

For the .jsp files, I don't know, I always avoid amending core files in Jira. Unless someone else has a good idea here, you'll need to dig it out for yourself.

How do you inject in the announcement banner?

I went to cog --> System --> Announcement banner and entered the script as mentioned below but could not see the custom field in bold. Please advise.

<script type="text/javascript"> a = document.getElementById('customfield_20341').parentNode; a.setAttribute('style', 'font-weight:bold'); </script>

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,189 views 13 19
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