I would like to pop up a message as warning or additional confirmation to the users on a particular transition. To achieve this, I have added a screen on transition with just one field which is of type "Message Field (for edit)". But the comment section appears by default.
As per the instructions in https://community.atlassian.com/t5/Jira-questions/How-to-remove-quot-comment-quot-textbox-appear-by-default-in/qaq-p/294992, I added the below code in the description of the "Message Field" under Field Configuration.
<script type="text/javascript">
if(AJS.$('#issue-workflow-transition-submit').val() =='my transition name'){
AJS.$('div.comment-input').css('display', 'none'); }
</script>
But the comment section is still visible. Please help.
Regards,
Shubha.