Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

jqlclausebuilder projects sub endsub question

AbrahamA
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.
March 8, 2017

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

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
AbrahamA
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.
March 10, 2017

I just looped over each project and added issues.. not ideal but works

TAGS
AUG Leaders

Atlassian Community Events