comment-edit.vm on Jira 6.2.6

We were using Jira 6.1.6. We have introduced some changes on the comment-edit.vm file to restrict the comment visibility to a certain role by default. The lines were the following:

#set ($selectedCommentLevel = "role:XXXXX")

#if ($jiraUserUtils.getGroupNamesForUser($authcontext.getLoggedInUser().getName()).contains("some_group"))
#set ($selectedCommentLevel = "role:XXXXY")

After we migrate to 6.2.6, i looked for the file to add this lines again, but i found that there was not comment-edit.vm on the template folder.

I made a fresh install of a 6.2.6. in a test environment, and the file wasn t present either.

I put a copy of the file on the template folder of this new instance (with the proper instance group and roles ids ) but nothing happened (auto reload of velocity templates was set to true on and i also restarted Jira just in case).

any thought of how can i force this default again? could the location of this file has changed? may i have to add this comment-edit.vm to an 'index-like' file so Jira can load it?

Any ideas would be very appreciated,


Pablo da Silva

1 answer

1 accepted

2 votes

Hi Pablo,

I believe the file you are looking for has been renamed to system-comment-field-edit.vm and changed paths after JIRA 6.2.1.

It can now be found in the path below:

  • $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/plugin/comment/system-comment-field-edit.vm

I hope this information helps.



Hello Danilo, thank you so much, i found the file on that new location and now i can modify it as needed.

Best Regards

Pablo da Silva

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,156 views 13 19
Join discussion

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