Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How can retrieve information on all filters and dashboards along with shared groups using SIL script

How can retrieve information on all filters and dashboards along with shared groups using SIL script

MVR July 6, 2020

Hi Folks,

 

I'm looking for a SIL script where i should able to get list of all dashboards and filters along with shared info

 

Is this possible?

 

Thanks,

MVR

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2020

Hello!

I think you need the SIL groovy connector. You could create a SIL script like this:

string script = "import com.atlassian.jira.component.ComponentAccessor;" +
"import com.atlassian.jira.portal.PortalPageManager;" +
"import com.atlassian.jira.issue.search.SearchRequestManager;" +
"" +
"def portalManager = ComponentAccessor.getComponent(PortalPageManager.class);" +
"def result = \"\";" +
"portalManager.getAll().foreach({ item -> " +
" item.getPermissions()" +
" " +
"});" +
"" +
"def searchRequestManager = ComponentAccessor.getComponent(SearchRequestManager.class);" +
"searchRequestManager.getAll().foreach({ item -> " +
" item.getPermissions()" +
" " +
"});" +
"return result;" +
"";

executeGroovyScript(script);

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events