Hi everyone
I have some groovy script to create filters, but i need to share with certain roles/groups. How can i share the filters with groovy script or jelly?
Here is my create filter code
JqlQueryBuilder builder = JqlQueryBuilder.newBuilder(); builder.where().project(project).and().addStringCondition("issuetype", Operator.EQUALS, "Issue") Query query = builder.buildQuery(); SearchRequest filtro = new SearchRequest(query) filtro.setName("TEST") filtro.setOwnerUserName(user) SearchRequestService srs= ComponentAccessor.getOSGiComponentInstanceOfType(SearchRequestService.class) srs.createFilter(ctx, filtro,true)
Thanks!
Have a look at com.atlassian.jira.issue.search.SearchRequest#setPermissions, then
com.atlassian.jira.issue.search.SearchRequestManager#update
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.