Remove edit button on label field Edited


I have a custom field (label-type) called "Reporter Department Code". I want to have it as a label field but I don't want the edit button on issue view screen:reporter_department_code_label.PNG

I have seen that there is a solution for this with the assignee field, inserting javascript code on field description:

<script type="text/javascript"> 
var removeCTE = setInterval(function() {
var editableElms = AJS.$('#assignee-val')
if (editableElms.length) { 

I am trying to use this method to remove the edit button pencil on my "Reporter Department Code" but I do not succeed:

<script type="text/javascript"> 
var removeCTE = setInterval(function() {
var editableElms = AJS.$('#edit-labels-1047756-customfield_13500')
if (editableElms.length){ 

What am I doing wrong? Is it possible to remove the edit button (pencil) from issue view screen? Making the custom field as an text-field is not an option, I want to have a label-field.

Br, David Henriksson

1 answer

This widget could not be displayed.

Hi There, 

Just remove that field from Edit screen , that will solve your problem.



No that doesnt solve the problem. My field "Reporter Department Code" is not in Edit screen and the pen is still visibile.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

135 views 16 7
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