Hi team,
We use : jira-rest-java-client-core 5.2.4 version in our Java application.
After upgraded our Jira version from 8.20.10 to 9.4.1 we found an issue with
IssueRestClient method: getCreateIssueMetadata
our input parameters are projectKey, issueTypeId and we get:
[ErrorCollection{status=404, errors={}, errorMessages=[Issue Does Not Exist]}] 2RestClientException{statusCode=Optional.of(404), errorCollections=[ErrorCollection{status=404, errors={}, errorMessages=[Issue Does Not Exist]}]}
These input parameters should be valid, and we are getting them from ProjectRestClient
method: getAllProjects()
This used to return valid data before an upgrade.
Were there any changes at Jira 9?
We have also reached out to Atlassian Support and they have pointed out that since we are using the latest version which was released on Feb 14 2022, it looks like it was not updated to the change that was implemented in Jira 9 as documented here:
https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html
Hi @Nic Brough -Adaptavist- thank you for your help.
Would you suggest any alternative, how we can create Jira issue from Java application?
Is using API i.e. https://docs.atlassian.com/software/jira/docs/api/REST/9.6.0/#api/2/issue-getCreateIssueMetaProjectIssueTypes the only way?
Yes, that's really the only sane way of doing it (there's another option on server systems, but it's pretty hideous and can take the service down for other users, so you should never use it)
Instead of using JRJC, call the "get" directly in your code, it will work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, there were changes to Jira 9. JRJC does not look like it has been updated to cope with them.
JRJC is not a supported product, it was built more as an example of what you could do. It is maintained by Atlassians volunteering to do it, but I don't think any of the people who used to volunteer are still working at Atlassian, or in roles that allow the time to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.