I my JIRA plugin I need to filter a set of issues by specific JQL and I am looking for a best way to do it using Java API.
For example: I want to check what issues from set IS-i1, IS-i2, IS-i3,..IS-iN satisfy some condition 'CONDITION'.
At the moment I am doing this by writing the following JQL: (issuekey = IS-i1 OR issuekey = IS-i2 OR ... OR issuekey = IS-iN) and (CONDITION).
I am feeling that my way is wrong. Could you please suggest a better way?
Community moderators have prevented the ability to post new answers.
You can use in:
issuekey in ("IS-i1", "IS-i2", ...)
or if you set is continuous it's better to use less and greater conditions:
issuekey >= "IS-i1" and issuekey <= "IS-iN"
I do not know what do you mean by the "search scope". If you speak about pagination, you should use PageFilter: https://docs.atlassian.com/jira/latest/com/atlassian/jira/web/bean/PagerFilter.html. Samle code here: https://confluence.atlassian.com/display/JIRA/__Searching+in+JIRA - replace PagerFilter.getUnlimitedFilter() with appropriate method or constructor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.