0

I and quite new to JIRA and am working on extracting issue information from JIRA through REST Client.

Dev Environment
I am using eclipse IDE and a maven project.

I was able to retrieve issue information one by one using REST Client.
Now I am trying to get all the issues which match a filter and put it in an array.

I went through already raised requests and posts in this forum and atlassian forum. But those are using Searchrequests and searchservice API's which are quite old and replaced with SearchRestClient I assume.
I am aiming to get all issues and put into a list. If anyone has done it, please let me know.

Thanks in advance.

1
  • I got a solution now. However the number of records being retrieved is only 50 whereas manual exection of JQL returns me 550 records. Any idea how to override default size to get all records. Code Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql(jqlForDataEnrichment); Commented Nov 8, 2016 at 3:26

2 Answers 2

1

I got a better solution

Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql(Jql, 500, 0,myFields);

where
JQL is the search string
myFields is the array of fields to be present in result list

Note: Dont put all the fields in the fieldarray, as it may cause timeout issues.

Thanks,
Vishnu

Sign up to request clarification or add additional context in comments.

Comments

0

I got a solution now. However the number of records being retrieved is only 50 whereas manual execution of JQL returns me 550 records. Any idea how to override default size to get all records.

Code

Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql(jqlForDataEnrichment);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.