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

How can I remove the "Comment" box?

Jakobi Oommen Sep 06, 2017

How can I remove the comment box for one specific transition? The transition is a multi-line field and I don't want users to mistakenly put info in the comments or feel that they are obliged to.


1 answer

0 votes
Tayyab Bashir Sep 06, 2017

Comment boxes appear in all global transitions.
You can put some code in field configurations and hide the comment field though.

You can do this by going to the field configuraiton of your project and add that script in any other field which does appear on the transition besides the comment box.
For e.g. You have a transition for "In Progress" to "Resovled"
And you have 2 fields on this transitions, 'abc' field and a comment box.
So you'd need to put the following script in the abc field of your project's field config.

<script type="text/javascript">

if(AJS.$('#issue-workflow-transition-submit').val() =='Transition Name'){

AJS.$('div.comment-input').css('display', 'none');


Jakobi Oommen Sep 13, 2017

Where exactly should i place this line? My transition is called "Solution not Sufficient" and has only one field which is "Explanation". 

I added the lines of code to the custom field explantation to no avail. 

Tayyab Bashir Sep 14, 2017 • edited

Your project would be using some Field configuration. 
Go to Project's Administration, and see what that is. 
See 1.png



 Search for Comment in the fields. And select Edit to add the script over there. 
See 2.PNG 2.PNG

<script type="text/javascript">

if(AJS.$('#issue-workflow-transition-submit').val() =='Solution not Sufficient'){

AJS.$('div.comment-input').css('display', 'none');



Note that the above script will target the transition Solution not Sufficient. 

So any time you are transitioning to Solution not Sufficient. the script will run.


Hope it helps.

Jakobi Oommen Sep 20, 2017

I added the code to "explanation" and "comment" fields separately but all that happens was the code appearing in the description.


Tayyab Bashir Sep 20, 2017

Did you put the closing script tag?
If that doesnt work, try just enclosing in simple script tag,


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Topic Tuesday: Agile

Another week, another Topic Tuesday!  Agile has been on my mind a lot lately because I've seen good implementations and bad implementations, but now as a Jira admin it matters more to me whether...

40 views 0 0
View post

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