Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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, 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'); }


But the comment section is still visible. Please help. 




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

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.

Tried jira.permission.comment.user=false and jira.permission.comment.user=denied

Not working for Jira Cloud, as far as I can tell.

We achieved this with the Scriptrunner plugin


import static com.atlassian.jira.issue.IssueFieldConstants.*

def comment = getFieldById("comment")
if (underlyingIssue.getStatus().name == "SOME STATUS" && getActionName() == "SOME TRANSITION") {

Suggest an answer

Log in or Sign up to answer

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