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)
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot