Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mareedu Balasubramanyam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2022

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();
log.info("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
TAGS
AUG Leaders

Atlassian Community Events