Forums

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

Need to set colors as red, blue, green for custom field drown down values by using Jquery

Imran Basha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2018

I tried this below Jquery in field description under Modify configuration scheme context, but it doesn’t worked

 

jQuery(document).ready(function () {

 

if (jQuery('#customfield_10215').val()=="On Target") {

 

document.getElementById("customfield_16904").style.backgroundColor= 'red';

 

} else if (jQuery('#customfield_16904').val()=="Assist") {

 

document.getElementById("customfield_16904").style.backgroundColor= 'yellow';

 

} else if (jQuery('#customfield_16904').val()=="Watch") {

 

document.getElementById("customfield_10215").style.backgroundColor= 'green';

 

}else if (jQuery('#customfield_16904').val()=="Done") {

 

document.getElementById("customfield_16904").style.backgroundColor= 'yellow';

 

}

 

});

 

 

Regards,

Imran Basha M.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events