Jira library (using maven) not working with GDPR name change

I am currently using a program to create and close tickets automatically. To do this we have a (spring boot) java application using maven. This has worked for ages but since yesterday it seems that our instance got hit with the changes for the GDPR. We suspected the Jira library to handle this but we have been getting the following error: “org.codehaus.jettison.json.JSONException: JSONObject[“name”] not found.”

Currently we are using:
jira-rest-java-client-core version 4.0.0
fugue version 2.6.1

I also tried to use:
jira-rest-java-client-core version 5.1.6
fugue version 4.7.2
These were the latest versions of the libs that I could find on the repository but sadly they have the same issue.

After a lot of googling I can’t find any newer libraries to do this. Does anyone happen to know of a library that does work with the changes?

Thanks in advance.

2 Likes

I have the same issue! I am also waiting for a fix, otherwise I have to start extending some classes to override the parse methods :thinking:

The JRJC ticket is JIRA REST Java Client Library - Issues - Ecosystem Jira
I cannot wait, so I forked the repo and I’m doing it for myself. If you check the commits the change is fairly clean and explanatory.

Thanks for the link. Seems a good thing to have in general to search for things like this.
Still weird that it hasn’t been addressed for so long.

Hi. Note that the JRCJ library is only for Jira Server. See the Compatibility section on https://ecosystem.atlassian.net/wiki/spaces/JRJC/overview

You can see more details about the changes in this post from October 2018. (Our REST API documentation links to this page in a number of places.) https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

I see the same error! As the JRJC is designated for Jira Server only, do we have a library for Jira Cloud?

Does that include the “jira rest java client core”?

I gues that I am looking for the correct library to use then just like Caroline.

In case it isn’t clear, “jira rest java client*” is JRJC. Atlassian does not make a similar library to work with Jira Cloud.

I wrote up how to generate a client library from our Open API spec for Jira Cloud. Note that this won’t provide a drop-in replacement if you were previously using JRJC.

See https://community.atlassian.com/t5/Jira-articles/Generating-a-REST-client-for-Jira-Cloud/ba-p/1307133