Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

IssueRestClient method: getCreateIssueMetadata returns 404 (errorMessages=[Issue Does Not Exist])

Mirjana Radovanov January 27, 2023

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

2 answers

1 accepted

1 vote
Answer accepted
Mirjana Radovanov January 29, 2023

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?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2023

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.

Mirjana Radovanov January 30, 2023

Thank you.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2023

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events