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

Hide the Comment field in Transition Screen

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.

1 answer

Hi @Pangeel Shubha ,

Alternatively, If possible, at this particular status you can disable comment option using workflow properties.

jira.permission.comment.user and make the property value false

 

https://confluence.atlassian.com/jirakb/how-to-deactivate-comments-for-closed-issues-648217599.html

This does not seem to work.

Also my purpose is that I want to display ONLY A WARNING MESSAGE in the transition screen without the COMMENT FIELD.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

237 views 1 2
Join discussion

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