Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating issues broken with JIRA v9 #299

Open
NaanProphet opened this issue Feb 27, 2023 · 2 comments
Open

Creating issues broken with JIRA v9 #299

NaanProphet opened this issue Feb 27, 2023 · 2 comments

Comments

@NaanProphet
Copy link

Looks like net.rcarz.jiraclient.JiraClient#createIssue is broken with JIRA version 9.

I found some documentation that outlines why the endpoint has been removed: https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html

The same article suggests the following solution, which would require rewriting the URI calls that occur in net.rcarz.jiraclient.Issue#getCreateMetadata

Modify the calls the integrations use to the following:

RETURN A LIST OF PROJECTS
/rest/api/2/project 

RETURN A LIST OF ISSUE TYPES GIVEN A PROJECT
/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes

RETURN A LIST OF FIELDS GIVEN A PROJECT AND AN ISSUE TYPE
/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId} 
@simontrimboy
Copy link

simontrimboy commented Apr 24, 2024

We have also come across this issue when upgrading between JIRA version 8 and 9.

Our logs show this error, reproduced via curl here

curl -u xxxx:xxxx -X GET -H "Content-Type: application/json" https:/x.x.x/rest/api/2/issue/createmeta

{"errorMessages":["Issue Does Not Exist"],"errors":{}}%

Using

/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}

is successful

However as you say the client constructs the issue using the /rest/api/2/issue/createmeta/ endpoint with query params for project and issue type (by name rather than ID) that has now been removed

@ybotquelen
Copy link

Hello, @dgigon corrected this issue on his forked project
(https://github.com/dgigon/jira-client/blob/master/src/main/java/net/rcarz/jiraclient/Issue.java)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants