-
Notifications
You must be signed in to change notification settings - Fork 328
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
404 using jira create to on-premise Jira Server 9.x #481
Comments
@coryb @mikepea @ldelossa @georgettica can we get this fixed? The more time that goes by the less this project will be useful, as Jira instances are kept up to date... |
@philipsd6 I forked this repo a while back and created a pull which has fixed this for me. If you can check to confirm that branch fixes this for you, I could merge it to master of my fork. let me know how it goes. |
also sounds like k-wall confirmed it is working in #490 I'll go ahead and merge it in my fork. |
#502 fixes this if anyone can review it. |
What happened?
https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html
Jira 9.0 moved the parameters on api/2/issue/createmeta into path values
Need to allow both versions to function
Need a configuration item to indicate which url/method to call
Need to write the new method to conform to the new api method format
Need new jiradata type because the api endpoint changed the output json schema
slipstream to create jiradata types
slipscheme -stdout schema/IssueTypes.json > jiradata/IssueTypes.go
Old API Doc: https://docs.atlassian.com/software/jira/docs/api/REST/7.2.7/#api/2/issue-getCreateIssueMeta
New API Doc: https://docs.atlassian.com/software/jira/docs/api/REST/9.0.0/#issue-getCreateIssueMetaProjectIssueTypes
What did you expect to happen?
jira create should work against Jira Server 9.x
How can we reproduce it (as minimally and precisely as possible)?
setup .jira.d/config.yaml to point to a Jira Server 9.x
jira login
jira create
This should produce a 404
Minimal code helps us to identify the problem faster.
Anything else we need to know?
I have forked go-jira and attempted to create a fix for this. It is partially there. I at least figured out how to get it to work. But I don't know how you all would prefer to setup the configuration to choose between the old way and the new way. Also, I'm not that much of an expert with golang. So I may not have changed the code correctly. I'm hoping for some peer review and guidance so we can get this working for everyone.
Here is the PR I created in my fork: prpht9#1
I created the TODO.md file to track notes about my work
I created the schema/IssueTypes.json in order to use slipstream to create the jiradata/blah.go file(s)
These can be removed before merging but I felt they communicate good stuff
I can create a PR from my fork to this upstream repo if/whenever you wish. Just let me know.
Your Environment
On-Premise Jira Server 9.2, forked go-jira project, changed code, rm .jira.d/config.yml from project because it was locked to dev params, ./jira create
Include as many relevant details about the environment you experienced the problem in
go-jira version (git tag or sha): latest master
Go version (go version): 1.19.4
Jira type (cloud or on-premise): on-premise
Jira version / Api version: Jira 9.2 / api v2
The text was updated successfully, but these errors were encountered: