How to add a custom fields to viewed issue details area, and remove system field from same area

Frédéric Tardieu
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.
July 4, 2017

Hi all,

Is it possible, without writting an add-on, to add a custom field to the viewed issue details area (the area with red square in my snapshot), and remove a system field (priority) from the same area?

For information, I am using JIRA server with Scriptrunner add-on.

Thank you!

ViewIssueDetails.png

1 answer

1 accepted

1 vote
Answer accepted
Thanos Batagiannis _Adaptavist_
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.
July 4, 2017

Hi Frederic, 

The priority field is required so you cannot leave it empty and therefore be dissapeared (because if a field has null / no value is not appeared) 

What you can do tho is to use some javascript and hide it or remove it. The element you want to hide / remove is 

$("#priority-val").parent().hide()

Now how are you gonna inject the javascript in the issue view screen? Have a look at Fields Allowing Custom HTML or JavaScript

Of course keep in mind that it will be easy enough for an experienced user to open browser's developer tools and make the priority field visible again. 

Hope that helps. 

kind regards, Thanos

Frédéric Tardieu
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.
July 4, 2017

Hi Thanos,

Thanks a lot for you reply.

But how to add a custom field of mine in the details area? Is that possible?

Thanks again,

Best regards,

Fred

Thanos Batagiannis _Adaptavist_
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.
July 5, 2017

Hi Frederic, 

If the custom field is not of type date or group or use picker then it will appear in the issue view details section.

Adding a custom field

regards, Thanos.

Suggest an answer

Log in or Sign up to answer