JIRA comments Viewable by a role or group by default

Is it possible to set comments as Viewable by a role or group by default for a particular project in JIRA?

3 answers

I am interested in this topic, does anyone know if this is possible?


0 vote

It is not possible without doing some coding. The issue is that you can restrict a comment to a group only if you are a member of that group and if that option is enabled globally.

It means it is more than just a Javascript hack.

That's clear, thanks for your quick reply.

Hi there,

Actually there is a resolution for this problem, and you can input this code in the "Announcement Banner" section inside JIRA.

<script language="JavaScript">
var defaultRoleName = "role:10002";
var customRoleSelected = false;

function changeCommentLevel()
if (customRoleSelected) return;

var commentLevelSelect = jQuery('.security-level select#commentLevel option[value=\'' + defaultRoleName + '\']');
if (commentLevelSelect)
{ var labelText = commentLevelSelect.first().text(); jQuery("select#commentLevel").val(defaultRoleName); jQuery("#commentLevel-multi-select a.drop span.icon").removeClass("icon-unlocked").addClass("icon-locked"); var htmlEscapedLabel = AJS.$("<div/>").text(labelText).html(); jQuery(".security-level span.current-level").html(AJS.format(AJS.params.securityLevelViewableRestrictedTo, htmlEscapedLabel)); }


jQuery('#comment').live('focus', changeCommentLevel);
jQuery('#commentLevel-suggestions').live('click', function()
{ customRoleSelected = true; }




We hope this helps!



Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published 4 hours ago in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

30 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot