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
Community moderators have prevented the ability to post new answers.
Hi,
Try this script
AJS.$('#customfield_id').parent().children().first().attr("class","field-value")
I ended up doing it like this:
a = document.getElementById('customfield_10101').parentNode; a.setAttribute("style","font-weight: bold");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's the same
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to place some javascript into your custom field to manipulate the DOM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this script
AJS.$('#customfield_id').parent().children().first().attr("class","field-value")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.