Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to apply HTML style or font weight for custom field "name" (not for value).

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2013

I've created a JIRA custom field plugin where i want to allow for custom field name to appear as bold text or can apply style. what should i modify to achieve this.

example:

add custom field - name is "sumary text"

so, on screen, it will appear as "summary text: <text field 1>"

here, i want "summary text" should be bolder or with some style.

Is it possible on JIRA custom field configuration or , can i handle such in plugin stuff ?

Thank You

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

Hi,

Try this script

AJS.$('#customfield_id').parent().children().first().attr("class","field-value")

0 votes
built2order March 25, 2014

I ended up doing it like this:

a = document.getElementById('customfield_10101').parentNode;
a.setAttribute("style","font-weight: bold");

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

Hi,

It's the same

CCP TechOps July 25, 2014

Hi,

I tried both the below options one at a time, but could not get the bold view of custom field either in Create screen or issue view screen. Please let me know what needs to be done to get this resolved.

Try1:

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

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

Try2:

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

Fyi.. above scripts were place in description area of custom field.

Usha May 25, 2018

Hello,

Were you able to figure this out? I tried both and I am not able to get it to format bold.

thanks,

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2013

You should be able to place some javascript into your custom field to manipulate the DOM.

built2order March 25, 2014

It would great to see a worked example!

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

Hi,

Try this script

AJS.$('#customfield_id').parent().children().first().attr("class","field-value")

Like Marcin Karpinski likes this

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events