Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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. 




2 answers


if you are using Jira Server/DC you can use our free App STAGIL Hide Comments .

Works like a charme :-)


0 votes

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") {



Have you succeed to solve this in cloud? I don't understand if this is a Listener or a post-function. I can only imagine that's a Behaviour but there are still not available in cloud.

HI @Mario Benedi Plana ,

You can achieve this with workflow properties at statusproperties.PNG

Hi @Sreenivasaraju P , thanks for the response, but I understand with this property the users can't comment when they are in this status ¿right? The user case is to hide it only in the transition screen.

Like # people like this

Suggest an answer

Log in or Sign up to answer