In Jira when you comment an issue you can choose who can view that comment (viewable by). Its All users by default. In one project ('THATPROJECT') I'd like to set the default to a specific group ('thatgroup'). In Jira 3.9 I achived this by editing the comment-edit.vm like this:
<option value="group:${textutils.htmlEncode($level)}"
##if ($level && $selected == "group:${level}")selected#end
#if (($commentLevel && $level && $commentLevel == $level) || (!$commentLevel && ($issue.project.key == "THATPROJECT") && $level == "thatgroup"))selected#end
>$textutils.htmlEncode($level)</option>
We plan to move to 4.4, so I started to play with rc1, I see comment-edit.vm changed a lot ( I guess in 4.3 its the same).
Community moderators have prevented the ability to post new answers.
the macro moved to global.vm - you can do the exact same thing there in 4.4.
#if ($issue.project.key == "THATPROJECT")
#set($currentSelection = "thatgroup")
#end
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.
Hello,
I am a begginer in velocity and I have the same problem.
I want to display by default the value "nobody" for all the issues.
I create a groub with no user called nobody, and i want to display it for all the issues.
Please help me.
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.
there is a VM file under web-inf/classes/templates/jira, global.vm. I edited this :
#set($currentSelection = "$i18n.getText('security.level.viewable.by.all')")
#if ($issue.project.key == "TST")
#set($currentSelection = "jira-developers")
#end
sorry I didnt see your question, yell if you need more explanation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.