How can i achieve that?
The following code does not work!!
<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>
Ok i got the link..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The code for Jira 6.2.4 needs to be changed a little bit:
<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.$);
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To the best of my knowledge, if the Resolution field is shown editable (loaded into the edit/ transition screen), the field is compulsary. Which means, even though you hide the field using Javascript, JIRA will expect a value for the Resolution field upon the form submission. (server-side validation)
This is not an answer to your question but what you are trying to do seems to be making no sense.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.