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
4,363,130
Community Members
 
Community Events
168
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 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.

2 answers

Hi, 

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

Works like a charme :-)

Best,
Alex

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

 

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.

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") {
comment.setHidden(true)
}

Hi,

 

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