Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

org.codehaus.jettison.json.JSONException: Cannot parse [summary] from available fields


Sometimes while using jira rest java client i'm getting above issue which i think due to some junk data in the summary field or not sure about the error exactly...we are getting these issue in between certain period( updated field period between fromdate and to date)  but not every time but problem is we are not able to proceed further to read other issues as we are not even getting the response back... so please help me on how to solve this issue...

Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql("resolution in (\"Fixed\", \"Done\", \"Completed\", \"Complete\", \"Feature Complete\", \"Resolved\", \"Unresolved\") AND updated >= \""+fromDate+"\" AND updated <= \""+toDate+"\" AND issuetype in (\"Discovery\", \"Bug\", \"Task\", \"Story\", \"Spike\") ORDER BY resolutiondate",maxResults,startAt,fieldSet);
totalCount=searchJqlPromise.claim().getTotal();"Total No. of Records for Issues are : {}",totalCount);
for (Issue issue : searchJqlPromise.claim().getIssues()) {



this is sample code snippet I'm using so while executing the jql itself we are getting the exception as response it is working fine in browser or postman but in java code there is some json parsing happening internaly in jira rest client which is throwing the exception and not proceeding further

0 answers

Suggest an answer

Log in or Sign up to answer