How and where can I Set default permissions for comments? I don't want (by default) that my customers can see comments which are added by my developers.
Hi Pawel,
All users (also customers) are added to the jira-users group by default. If you add a comment to an issue this comment will be visible for this jira-users group by default. If you want your comment to be visible only by one group, f.e jira-developers, you can change the scope of the comment here:
The comment will only be visible for the selected group. All users refers to the default jira-users group.
Hope this answers you question?!
Does this answer help you? https://answers.atlassian.com/questions/163793/set-default-comment-visibility
No, because my original file looks like this:
#disable_html_escaping()$!{auiparams.put("controlHeaderClass", "aui-field-componentspicker $!fieldLayoutItem.rendererType")}#customControlHeader ($action $field.id $i18n.getText($field.nameKey) $fieldLayoutItem.required $displayParameters $auiparams)#if ($components && !$components.empty) #if ($!isFrotherControl)<div class="ajs-multi-select-placeholder textarea long-field"></div>#end #if (!$fieldLayoutItem.required) #set ( $componentHeaderSize = 1) #end <select class="select #if ($!isFrotherControl)hidden#end" id="$field.id" multiple="multiple" name="$field.id" size="#minSelectSize($components $componentHeaderSize 5)" data-remove-null-options="true" data-submit-input-val="true" data-input-text="$textutils.htmlEncode($!frotherInputText)"> #if (!$fieldLayoutItem.required) <option#if ($currentComponents && $unknownComponentId && $currentComponents.contains($unknownComponentId)) selected="selected"#end value="-1"> $i18n.getText('common.words.unknown') </option> #end #foreach ($component in $components) <option#if ($currentComponents && $component && $currentComponents.contains($component.getLong('id'))) selected="selected"#end title="$textutils.htmlEncode($component.getString("name")) #if($component.getString("description")) - $textutils.htmlEncode($component.getString("description"))#end" value="$!component.getLong('id')"> $textutils.htmlEncode($component.getString('name')) </option> #end </select> #if ($!isFrotherControl)<div class="description">${i18n.getText('generic.picker.static.desc')}</div>#end #displayFieldWarning($displayParameters, $i18n.getText('bulk.edit.warning.component'))#else <span class="field-value">$i18n.getText('common.words.none')</span>#end#customControlFooter ($action $field.id $fieldLayoutItem.getFieldDescription() $displayParameters $auiparams)$!{auiparams.clear()}
I suggest that you selected the wrong file. It seems that you selected the components-edit.vm but you must edit the comment-edit.vm! My JIRA version is 6.2.4 and the comment-edit.vm looks like described in the above link.
Please follow this instructions. It works!
I use 6.2.3 version. How can I should get the upgrade?
This small tutorial shows you how to set the default group that sees your comments:
https://developer.atlassian.com/display/JIRADEV/How+to+Set+Default+Comment+Security+Level
Hi Benji, I know it exactly But I need it to be automatic, because sometimes my developers forget about this option and then our customers could see comments. which they shouldn't see
Have a look at this template file:
WEB-INF/classes/templates/jira/global.vm
Around line 28 you find the templating that is used for setting the available options for comment visibility.
All users refers to the default jira-users group.
i dont think this is true. Setting a comment scope of "all users" allows users in a group other than jira-users to see the comment. However, selecting the jira-users group does hide the comment from groups other than jira-users. I witnessed this in 6.2.7
It looks like you're new here. Sign in or register to get started.