How to remove the comment text box appear in the JIRA transition view screens (popups)
Two approaches - nasty code hacks, or you could remove the user's permission to comment on issues (either through the permission scheme to do it consistently, or with workflow properties)
Hi,
It's a bit of a workaround, but you can do it by editing a custom field appearing on that screen and adding the following code in the description text area:
<script type="text/javascript"> if(AJS.$('#issue-workflow-transition-submit').val() =='Transition Name'){ AJS.$('div.comment-input').css('display', 'none'); } </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Remember, the code hack will need to be done whenever you upgrade and it may not be the same each time and once you start management will keep asking for more. One place I was at had put in over 100 hacks to code and a new release came that was a nearly total rewrite so none of them fit any more. It took nearly a year to reproduce them in the new version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kanchana,
It's a bit of a workaround but if you edit a custom field appearing on that screen and put the following code in the description text area:
<script type="text/javascript"> if(AJS.$('#issue-workflow-transition-submit').val() =='Transition Name'){ AJS.$('div.comment-input').css('display', 'none'); } </script>
It should hide the comment section.
Regards,
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Konstantin!
You're a legend! I tried so long to do this with plain CSS, and every time i had something disappearing that I did not want. AJS rocks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if this works on all verions of JIRA, it should be included in the Atlassian documentation, I've been looking for a working solution for quite some time.
Have you tested it on 6.x and 7.x?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's never going to be included in the documentation because it's an unsupportable and unwanted hack which is likely to become unusable in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed with Nic, but a change should be proposed and voted; i think it would be useful for many users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.