Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hide - add comment on issue screen

DG September 4, 2023

Hi togheter,

We want to hide the "click to add comment" option in the UI?

Is there a way to do this, via JavaScript for example?

Best regards

DG

2 answers

0 votes
Fazila Ashraf
Community Champion
September 4, 2023

Hi @DG 

You can try using the script fragments from scriptrunner plugin  for this usecase -> https://docs.adaptavist.com/sr4js/latest/features/script-fragments 

0 votes
Rilwan Ahmed
Community Champion
September 4, 2023

Hi @DG ,

Two workarounds I can provide.

  1. Grant add comment permissions only to required users. 
  2. If you want users from adding/block comments at particular status,  then add workflow status property
    • jira.permission.comment.denied -- disables comments when an issue has a particular status.
    • Allow comments from the groups jupiter and mars:
      • jira.permission.comment.group.1=jupiter
      • jira.permission.comment.group.2=mars

More details about property is in https://confluence.atlassian.com/adminjiraserver/workflow-properties-938847526.html

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events