Is it possible to set comments as Viewable by a role or group by default for a particular project in JIRA?
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; } ); //--> </script> <style> .alertHeader {display:none;} </style>
We hope this helps!
Regards,
Pietro
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am interested in this topic, does anyone know if this is possible?
Thanks
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.