Jira Ticketer Plugin update support for Atlassian Cloud
Description
While trying to configure the demo server to use the Jira ticketing plugin against this demo instance, I found a few incompatibilities between the ticketing plugin and the current version of Atlassian’s API.
Running a jira-verify fails on the issue type check:
user@opennms()> jira-verify
Verifing Jira Ticketer Plugin...
Validating configuration...
OK
Try connecting to jira server https://opennms.atlassian.net/ with username: 'REDACTED' and password: 'REDACTED'...
Successfully connected to jira instance at https://opennms.atlassian.net/
Server Info:ServerInfo{com.atlassian.jira.rest.client.api.domain.ServerInfo@5b8a47dd, baseUri=https://opennms.atlassian.net, version=1001.0.0-SNAPSHOT, buildNumber=100227, buildDate=2023-06-20T23:04:12.000Z, serverTime=null, svnRevision=28a616e974be4f0839248de52d15df2dfd7aa0e2, serverTitle=OpenNMS Jira}
OK
Validating project with key 'TID'...
OK
Validating issue type with name '10006' for project with key 'TID'...
Error executing command: No issue type with id '10006' found for project with key 'TID'
I have verified that issue type ID 10006 does exist and maps to the Task type.
Additionally, the jira-list-issue-types command fails with a permission issue, even though the given user is a project admin.
user@opennms()> jira-list-issue-types
No issue types found for project with key 'TID' found. The user making the ReST call may not have sufficient permissions.
Additionally:
user@opennms()> jira-list-fields
Fetching all fields for all projects and all issue types.
Error executing command: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.rest.client.api.domain.StandardOperation.COPY
user@opennms()> jira-list-priorities
Error executing command: RestClientException{statusCode=Optional.of(401), errorCollections=[]}
While trying to configure the demo server to use the Jira ticketing plugin against this demo instance, I found a few incompatibilities between the ticketing plugin and the current version of Atlassian’s API.
Running a
jira-verify
fails on the issue type check:user@opennms()> jira-verify Verifing Jira Ticketer Plugin... Validating configuration... OK Try connecting to jira server https://opennms.atlassian.net/ with username: 'REDACTED' and password: 'REDACTED'... Successfully connected to jira instance at https://opennms.atlassian.net/ Server Info:ServerInfo{com.atlassian.jira.rest.client.api.domain.ServerInfo@5b8a47dd, baseUri=https://opennms.atlassian.net, version=1001.0.0-SNAPSHOT, buildNumber=100227, buildDate=2023-06-20T23:04:12.000Z, serverTime=null, svnRevision=28a616e974be4f0839248de52d15df2dfd7aa0e2, serverTitle=OpenNMS Jira} OK Validating project with key 'TID'... OK Validating issue type with name '10006' for project with key 'TID'... Error executing command: No issue type with id '10006' found for project with key 'TID'
I have verified that issue type ID
10006
does exist and maps to theTask
type.Additionally, the
jira-list-issue-types
command fails with a permission issue, even though the given user is a project admin.user@opennms()> jira-list-issue-types No issue types found for project with key 'TID' found. The user making the ReST call may not have sufficient permissions.
Additionally:
user@opennms()> jira-list-fields Fetching all fields for all projects and all issue types. Error executing command: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.rest.client.api.domain.StandardOperation.COPY user@opennms()> jira-list-priorities Error executing command: RestClientException{statusCode=Optional.of(401), errorCollections=[]}