As Part of GDPR the Jira UserParsing fails when no name found

I am trying to prepare our code to be GDPR compliant ( []( . I am doing this by passing the request header with
x-atlassian-force-account-id = true . But when I do that the Json Object parsing breaks, with the below error stack trace.
The User object does not return the name property and the still looks for it breaking the parsing.
I tried this with jira-rest-client-core*.jar with 3.0.0, 4.0.0 and 5.1.0 versions and fails for every one of them.
Can anyone help me with this.
This is on the searchI ssues rest API call

"throwable":"org.codehaus.jettison.json.JSONException: JSONObject[\"name\"] not found.\n\tat org.codehaus.jettison.json.JSONObject.get(\n\tat org.codehaus.jettison.json.JSONObject.getString(\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat\n\tat ```

Thanks and Regards

It looks like you might be using a jar file that works with Jira server. The Jira server and cloud APIs are not the same, so I wouldn’t expect that jar to work with cloud.

Hi Bkelley,
Thanks for your reply. So can you please tell me what jar should i be using for cloud then?
And i assume the GDPR changes are affecting only JIRA cloud.
So is there no common jar that we can use for both server and cloud apis?
Thanks and Regards

Hi. Sorry, but Jira Cloud does not provide a Java API for calling REST endpoints.
The Jira Server jar cannot be used for Cloud. While many APIs are similar, many are different.