How do I disable the comment button per status in Jira?

Bob July 23, 2013

I have users and developers that add comments while "working issues" and they tend not to use the workflow transition button to reflect the proper status. Is is possible to disable the comment button from the forms until the issue is in a particular status?

Thanks.

7 answers

1 accepted

1 vote
Answer accepted
Christophe Leite July 23, 2013
Hi Bob, You may add the property jira.properties.comment followed by one of these suffix group, user, assignee, reporter, lead, userCF, projectrole... (example : jira.properties.comment.reporter = denied forbid reporter to comment an issue on a specific status). Then, you can give 'denied' or 'granted' value for that for each status. Best regards, Christophe
6 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

you can use the workflow properties to restrict, use the following property

jira.permission.comment.group=some-group
jira.permission.comment=denied

check the following documents

http://www.j-tricks.com/1/post/2011/02/permissions-based-on-workflow-status.html

https://confluence.atlassian.com/display/JIRA/How+to+deactivate+comments+for+closed+issues

3 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

Yes, you can restrict certain permissions based on status. See a write-up about that at http://www.j-tricks.com/1/post/2011/02/permissions-based-on-workflow-status.html

1 vote
Bob July 23, 2013

All answers worked! Christophe's and Ramanam's answers kept me from having to refer to another page.

Thanks!

0 votes
Adam November 26, 2013

Hi all,

I'd like to disable comments during the "Waiting For Reporter" state to force users to use the proceeding "Answer" state, instead of just commenting on a ticket and leaving it in the "Waiting For Reporter" state.

I've tried the workflow property as outlined here: https://confluence.atlassian.com/display/JIRA052/How+to+deactivate+comments+for+closed+issues

Our current workflow is:

Open -> Waiting For Reporter (disable comments via workflow property) -> Answer (enable comments via workflow property)

The problem is that the enabling of comments seems to be too late because there's no comment box inside the "Answer" dialog that pops up.

Anyone have any ideas on how this could be done better?

Thanks!

Tamsin Slinn April 29, 2014

Hi,

Sorry for the late comment, I wondered how you got on with this.

I want to disable the "comment" button but still allow comments during the transition. did you find a way to achieve this?

Thanks!

Like Vladislav likes this
Vladislav December 23, 2019

Hi Tamsin,

Please advise were you able to find a solution "to disable the 'comment' button but still allow comments during the transition"?

Thanks in advance!

Vlad

Like Adam Ziecik likes this
0 votes
Onkar Ahire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

Hi Bob,

Please check the Comment Permission in Permission Scheme associated for the project of an issue.

Regards

Onkar Ahire.

RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

comment permission on permission scheme are project level, it can't use for workflow level

Like Mark de Bont likes this
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2013

Onkar, that's incorrect - comment permission applies at a project level

Bob needs to disable comments based on the status of an issue, which is covered at https://confluence.atlassian.com/display/JIRA/Workflow+Properties

Like Mark de Bont likes this
0 votes
Bob July 23, 2013

Wow, didn't expect replies this quick. Let me investigate the options provided.

Thanks.

Suggest an answer

Log in or Sign up to answer