Is it possible to script changing shared filters "Shared with" field?

Jira 7.2.2 eliminated the functionality of shares (dashboards, filters) to be accessed by public/anonymous users if your instance is not public. I have numerous filters that have the "Shared with" field populated with "Shared with public" that I would like to change to "Shared with logged-in users" as a bulk. Anything "Shared with public" is moved to "Shared with logged-in users". Is this possible?

2 answers

1 accepted

Pretty sure this is the solution:

1. Run the following query: 
     update SHAREPERMISSIONS 
     SET SHARETYPE = 'loggedin' 
     WHERE SHARETYPE = 'global' AND entitytype = 'SearchRequest' 

2. Run the following query: 
     update SHAREPERMISSIONS 
     SET SHARETYPE = 'loggedin' 
     WHERE SHARETYPE = 'global' AND entitytype = 'PortalPage' 

3.Restart JIRA 

4. Perform indexing

ref: https://jira.atlassian.com/browse/JRASERVER-23255

Hi Rich,

Thank you for posting that solution here.

Cheers,

Branden

John I'm New Here Jan 26, 2018

As in run that query against the database?

May I ask which database you are using? and if this worked successfully?

I'm a little hesitant to run a query against a database without knowing the impacts.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 3 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

57 views 4 4
Read article

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