Unable to share a filter to a group due to the "add" button being unavailable to select

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

A User is unable to share a saved filter with a group because the "add" button is unavailable. Additionally, the "Select a group" field does not render when selecting to grant a group permission to a filter. The expectation is that this will affect any user when attempting to share "View" or "Edit" permission with a group for a saved filter.

(Auto-migrated image: description temporarily unavailable)

The presence of the "Edit permissions" link when selecting "Details" on the saved filter tells us that the user logged in to Jira has the "Create shared objects" Global permission eliminating it as a cause.

(Auto-migrated image: description temporarily unavailable)

Environment

ALL

Diagnosis

When replicating the behavior an exception is thrown, in the atlassian-jira.log, due to Jira not being able to find the share-type-group-picker-selector.vm velocity template

1 2 3 4 5 6 2023-03-06 10:36:32,157-0800 https-openssl-nio-443-exec-27 ERROR eliong 636x24824x1 107vg6r 10.67.13.45 /secure/EditFilter!default.jspa [webwork.util.ValueStack] query="./shareTypeEditor" {[id="null" type="3" values=""]} {[id="shareTypeEditor" type="8" values=""]} java.lang.reflect.InvocationTargetException     at sun.reflect.GeneratedMethodAccessor2577.invoke(Unknown Source) ... Caused by: java.lang.RuntimeException: org.apache.velocity.exception.VelocityException: Could not find template 'templates/jira/sharing/share-type-group-picker-selector.vm' ensure it is in the classpath.     at com.atlassian.jira.sharing.type.VelocityShareTypeRenderer.renderVelocity(VelocityShareTypeRenderer.java:62)

File path : <JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/templates/jira/sharing/share-type-group-picker-selector.vm

Cause

The naming convention of the files within the sharing directory above changed in Jira Software 8.11.0.

Jira Software 8.10.1 format:

(Auto-migrated image: description temporarily unavailable)

Jira Software 8.11.0 format

(Auto-migrated image: description temporarily unavailable)

If the behavior is noticed after an upgrade of Jira, to a version of 8.11.0 or later, it is likely that the contents of the sharing directory contain the files from a version of Jira 8.10.1 or below

Solution

Option 1:

  1. Copy the share-type-group-picker-selector.vm file from another instance (of the same version)

  2. Check that the file/folder permissions are set appropriately after copying the file/folder

  3. Restart Jira

Option 2:

  1. Download the appropriate TAR or ZIP file from Jira Server & Data Center download archives depending on the version of Jira installed

  2. Extract the share-type-group-picker-selector.vm file from the /sharing directory

  3. Copy the file into the <JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/templates/jira/sharing/ directory

  4. Check that the file/folder permissions are set appropriately after copying the file/folder

  5. Restart Jira

  • If the remaining files also have a different naming convention than expected, we recommend replacing the entire sharing folder with the export from above.

Updated on March 11, 2025

Still need help?

The Atlassian Community is here for you.