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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried jira.permission.comment.user=false and jira.permission.comment.user=denied
Not working for Jira Cloud, as far as I can tell.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Mario Benedi Plana ,
You can achieve this with workflow properties at status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you are using Jira Server/DC you can use our free App STAGIL Hide Comments .
Works like a charme :-)
Best,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.