User Tools

Site Tools


neat_things

This is an old revision of the document!


Neat Things in Jira

Changing color of label on a field on Edit or Create screen

If you want to change the label of a field in jira, you can do so by writing a simple script, and adding it to the description of the field. The below example makes the field colored red.

<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_11700]').css({color:'red'});
              AJS.$("#customfield_11700").parent('label').css('color','red');
	}
});
</script>
neat_things.1516132180.txt.gz · Last modified: 2018/01/16 14:49 by pawel