OpenNMS Jira Integration

Hi.

Running OpenNMS Horizon 28.0.0.
Running Jira Cloud on Atlassian

I’m trying to integrate OpenNMS with our Jira Cloud. https://ourcompany.atlasian.com

I was able to generate an api token. The connection is successful because the opennms:jira-verify return my few corporate detail.

The problem it looks like the OpenNMS is not providing the latest Rest API code.
When I’m trying to run
opennms:jira-list-projects
Key Name Description
Error executing command: RestClientException{statusCode=Optional.absent(), errorCollections=[]}

When trying to run
admin@opennms()> opennms:jira-list-issue-types
No issue types found for project with key ‘My Project’ found. The user making the ReST call may not have sufficient permissions.

In the Karaf.log, I’m getting this.
Caused by: org.codehaus.jettison.json.JSONException: JSONObject[“name”] not found.

So I did some research and found this.
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

Is there a way to solve this? I’m an admin, not a developer.
Any others having the issue?

Thanks

Internally, OpenNMS uses the Jira REST Java Client (https://ecosystem.atlassian.net/wiki/spaces/JRJC/overview?homepageId=27164679) which says in its wiki:

The Jira REST Java Client works with Jira Server, but not with Jira Cloud.

So I’m not sure there is anything we can do in this instance…

Is there a way to know if it’s something plan by the development teams to make it compatible with the Jira Cloud version?

You’d have to ask Atlassian.

ohhh, it’s on the Atlasian side. I was thinking it was on the NMS side. I will check with them. Thanks

Correct; the Jira REST Java Client library OpenNMS uses for the integration is provided by Atlassian.

I’m still trying to get that thing solve and maybe there is something that I don’t understand, but it looks the issue mentionned in that thread is solved since 2019.

https://bitbucket.org/atlassian/jira-rest-java-client/pull-requests/93

We see also in the master branch that the issue to solved the [“name”] not found is merged in the Master branch.
https://bitbucket.org/atlassian/jira-rest-java-client/branches/

Maybe there is something I’m not understanding, but if the master branch for that plugin is containing the fix for the issue I’m getting, why it is not included in NMS. Is this because Atlasian is not maintening it?

We depend on and build with an older version of the plugin that doesn’t contain this fix: opennms/pom.xml at 4d6099e85bdfc0778518823d8532c479818aea33 · OpenNMS/opennms · GitHub

Hi.

This is what I understand. :slight_smile:
But is there any chance that the next build will include that fix? At the same time, I think that fix is only for the Cloud Version. So I believe that it can break the On-Prem version.

Except if in the config file for Jira, jira.properties, there is a flag that can indicate if the Jira version use is the Cloud or the On-Prem. That way you can point to the right version.

You can absolutely create an issue in our Jira for this, but creating an issue for it doesn’t guarantee we’ll take action on it during a given release cycle. Since this is potentially a breaking change for our paid support customers, an update of this dependency would most likely target develop, which would turn into Horizion 29 sometime around November (at the earliest).