Filterpicker reading issues using querybuilder

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.
September 1, 2017
Hello

I am writing a Jira report.

I see that filterpicker is one option as report parameter.

How do we get the issues using jqlquerybuilder or clausebuilder

Can you please post a code snippet

Appreciate it

Thanks
Abe

1 answer

0 votes
Gaston Valente
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.
September 1, 2017

Hi Abraham, something like this?

 

 JqlQueryBuilder builder = JqlQueryBuilder.newBuilder()

builder.where().project().eq("PRJ")
builder.orderBy().issueKey(SortOrder.ASC)

Query query = builder.buildQuery()
SearchProvider searchProvider = ComponentAccessor.getComponent( SearchProvider.class )
SearchResults results = searchProvider.search(query, "admin", PagerFilter.getUnlimitedFilter())

return results.getIssues()

Suggest an answer

Log in or Sign up to answer