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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 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