Hi All,
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. 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.
For those who come across this Here is the answer
Set<String> myFields = new HashSet<String>();
myFields.add(custom fields);
etc
Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql(jqlForDataEnrichment, 1000, 0,
myFields);
//iterate now.
for (Issue issue : searchJqlPromise.claim().getIssues()) {
System.out.println("Key: " + issue.getKey());
etc
}
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
what's mean the variabel "jqlForDataEnrichment"??
My vision is ...
Promise searchJqlPromise = client.getSearchClient().
searchJql("filter=28713", 500, 0,myFields);
What is wrong in my vision?? ... what is the alternative?
THX for helping my ...
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.
I wish to get all issues based on Audience ID custom field? Any idea ? Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.