How to make custom field text red?
<script type="text/javascript">AJS.$("#customfield_11329").attr('style', 'color:red')</script>
Above code does not work. Any ideas?
In that way it does't work on 5+ jira version, try with this
<script type="text/javascript"> jQuery(document).ready(function($) { JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) { callFunction(); }); callFunction(); function callFunction(){ AJS.$('label[for=customfield_11329]').css({color:'red'}); } }); </script>
try with this
AJS.$('label[for=customfield_11329]').css({'color':'red'}); or AJS.$("#customfield_11329").parent('label').css('color','red');
Does not work!!!
<script type="text/javascript">AJS.$("#customfield_11329").parent('label').css('color','red');</script>
how you tried and whatis the jira version?
Great. It works!!
But only in edit screen, not in view screen.
glad to hear it worked!!
if it to be work on view screen you need to check custom field id on view screen
if my answer helped then vote up and accept as answerd
hello @RambanamP ,
Is there any idea how can I do it for edit too?
Hi -
Is it possible to change the color of the field values for system fields? I am hoping to change the values for Labels to red.
Anyone have any ideas?
It looks like you're new here. Sign in or register to get started.