Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make * in red color for required custom field in second screen in jira 7.11.1 version

Mani August 31, 2018

Hello All,

Trying to make  * with red color to make the Custom field(Text field(Multi-line)) look mandatory with the below script.

<script type="text/javascript">
AJS.$("#customfield_11300").parent().children('label').append('<span class="aui-icon icon-required"></span>');
</script>

 Above code does not work? 

Any idea.

Thanks,

Manikanta

2 answers

0 votes
RambanamP
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.
September 5, 2018

try with following script 

<script type="text/javascript">
jQuery(document).ready(function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
callFunction();
});

callFunction();

function callFunction(){
AJS.$("#customfield_11300").parent().children('label').append('<span class="aui-icon icon-required"></span>');

}
});
</script>
0 votes
Mohamed Adel
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.
August 31, 2018

@Mani

Try to use RambanamP's solution

Suggest an answer

Log in or Sign up to answer