It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to remove the default 'Resolution' field from the View Issue page in Jira 4.4.5

Harish Sep 02, 2012

How to remove the default 'Resolution' field from the View Issue page in Jira 4.4.5

We do not want to display the Resolution field in the View Issue page as it is confusing us with the Status field.

I have tried to make the 'Resoltuion' field as 'Hidden' from the Field Configuration page, the Resolution field is not shown on the View Issue page but then this impacts other places too especially the 'Assigned to Me' gadget does not display the Defects when the Resoltuion field is hidden.

We want the Resolution field functionality to work as it is. Only need is NOT to display it in the View Issue page.

Please suggest any work around for this.

Thanks,

Harish.

4 answers

1 vote
Harry Chan Sep 02, 2012

Hi, you can use the JIRA Toolkit plugin. Add a message Custom Field (for view) and use some Javascript/jQuery to hide the resolution field from being viewed.

Harish Sep 02, 2012

Hi Harry,

Thanks for the response.

I do not want to use the external plugins as reently we tried with plugins ( Free Plugin ) and where unable to achieve the required feature.

Can we achieve this by using any 'Field Level security ' option.

Or anyother way to edit the 'View Issue' page code , may be the .vm or .xml or .jsp files

If so, let me know the file realted to the 'View Issue' page.

Please let me knowif there are workarounds with in Jira.

Thanks,

Harish.

Renjith Pillai Sep 02, 2012

Harish, can you elaborate a bit on this point "I do not want to use the external plugins as reently we tried with plugins ( Free Plugin ) and where unable to achieve the required feature."? As using the message custom field as told by Harry seems to be good solution.

Raju KC Apr 25, 2013

Harry solutions does not work for me in v5.x . My code is

<script type="text/javascript">
(function($) {
AJS.toInit(function(){
AJS.$("#resolution").hide();
});

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
AJS.$("#resolution").hide();
});
})(AJS.$);
</script>

Any solution

Try using JavaScript (either in the announcement banner or field description). Following are the hints for your JavaScript code.

  1. HTML ID for Resolution field's value element: 'resolution-val'
  2. Using Javascript, remove the parent of parent of that element. (What you should remove is a HTML <li> element)

For testing I removed it using Firebug and things looked clean. :-)

0 votes
Marlon Hemkemaier May 17, 2013

use two different screen schemas, the first for create a issue, this don't has 'Resolution' field, and the other, the 'edit screen' need have the field 'resolution' for you fix yours issues.

0 votes
Bruna Griebeler May 19, 2014

In Jira 6.x the Java Script code must be changed a little bit. Instead of #resolution, the id should be changed to #resolution-val:

<script type="text/javascript">
(function($) {
AJS.toInit(function(){
AJS.$("#resolution-val").hide();
});

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
AJS.$("#resolution-val").hide();
});
})(AJS.$);

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Unofficial downtown meetup week of June 3 or 4?

Hello everyone!  It's been a while since Houston's had a Atlassian Community Event (formerly Atlassian User Group meeting) so I wanted to gauge interest in an unofficial downtown meetup after wo...

15 views 0 0
View post

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you