Hi
In my JIRA plugin report I have a multiselect input parameter of project kets, and I get the selections using
List<String> projectKeys = Lists.newArrayList(ParameterUtils.getStringArrayParam(params, "projectnames"));
In my JQLClausebuilder I would like to get all issues from the projects selected
JqlClauseBuilder jqlClauseBuilder = JqlQueryBuilder.newClauseBuilder(); jqlClauseBuilder.clear(); jqlClauseBuilder.defaultAnd().sub().project().in(projectKeys.toString().replace("[", "").replace("]", "")).endsub();
I tried many combinations, if I select 1 project as input param it works fine. If I select more than 1 no issues are returned.
Can you please let me know how to write so that I get issues from multiple projects.
Thanks
Abe
Community moderators have prevented the ability to post new answers.
I just looped over each project and added issues.. not ideal but works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.