JIRA 4.3 : How to Set Default Comment Security Level
This page last changed on Feb 16, 2011 by jcurry.
While there is no nice way of setting the default comment security level through the admin section, a bit of creative javascripting can come to the rescue. It's not the best solution but it works. First, you will need to examine the HTML code of the issue page, and find the user visibility select list. For example: <select name="commentLevel" id="commentLevel"> ... <option value="role:10002">Administrators</option> ... <option value="group:jira-administrators" >jira-administrators</option> Take note of the value for the option you want to set. Then add this as the Announcement Banner under Options and Settings, and your field should come preselected. <script language="JavaScript"> <!-- window.onload = function() { var commentLevelSelect = document.getElementById("commentLevel"); if (commentLevelSelect) { commentLevelSelect.value = 'group:jira-administrators'; } } //--> </script> <style> .alertHeader{display:none;} </style> Of course, you need to change the commentLevelSelect.value from group:jira-administrators to the one you want. |
![]() |
Document generated by Confluence on Mar 27, 2011 18:55 |