can't change display of 'view issue screen' by writing javascript in field's 'Field Description'

my jira version is 4.4.1

i want to change the display of 'view issue screen'.

1. for example,make the field "Description" 's text in 'red' color on 'view issue screen'.

so i put the following javascript code to the field "Description"'s Field Description

<script type="text/javascript">
document.getElementById("issue-description").style.color="red";
</script>

the field "Description"'s text is still in its black color on 'view issue screen'

2.while "Description" show red color when i do the similar action to this field on 'edit issue screen' or 'create issue screen'

<script type="text/javascript">
document.getElementById("description").style.color="red";
</script>

3. so can i say javascript in 'Field Description' only have effect to 'edit issue screen' or 'create issue screen'?

or is there another way to make it?

1 answer

1 accepted

0 vote
Renjith Pillai Community Champion Jan 04, 2013

Try this in the announment banner.

<script type='text/javascript'>
AJS.$(document).ready(function() {
        AJS.$("#description-val").css("color", "red");
   }
);
</script>

hi, Renjith

i tried your code,it has no effect for 'view issue screen',but useful for 'edit issue screen' or 'create issue screen'

and [Try this in the announment banner.] where is the [announment banner]? i just paste the code to field description

Renjith,

thanks very much !

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,190 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot