I am trying to hit the API http://localhost:8080/rest/issue to create an issue
and receiving the below error, i restarted by JIRA server
Also i created a new session ID to pass into the header
Request Body is created only with the mandatory fields.
Hi @Mrunali Gaikwad welcome on the community, what version of Jira do you use?
In older versions you need to use
Welcome to the Atlassian Community @Mrunali Gaikwad
Martin is correct in that you need to use /rest/api/2/issue on jira server to create an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is interesting, Atlassian probably reworked REST API, in last version the documentation works with /rest/issue, as @Mrunali Gaikwad mentioned. There is a difference :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using 8.19.1
and the site gives me the resource as below
When i used /rest/api/2/issue it worked but the one provided in the documentation does not.
Is that an incorrect info on the official site ?
https://docs.atlassian.com/software/jira/docs/api/REST/8.19.1/#issue-createIssue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like the documentation is not correct... I will mark this question with label so Atlassian team can check it.
Can you work with /rest/api/2/issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, i am working with the same
I am referring to this site-https://docs.atlassian.com/software/jira/docs/api/REST/8.19.1/
Also, i see the same issue with delete issue which has below resource
DELETE /rest/issue/{issueIdOrKey}
And the AddComment also failed with same error using resource
POST /rest/issue/{issueIdOrKey}/comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry for the inconvenience, it does appear that the current documentation has different endpoint names than the previous versions. Also these new names don't seem to be working for me either. I have created a bug for this over with our documentation team in https://jira.atlassian.com/browse/JRASERVER-72844
I suspect that this is something the documentation team will need to investigate further to resolve this. In the meantime, I recommend trying to follow the 8.18 documentation over in https://docs.atlassian.com/software/jira/docs/api/REST/8.18.0/ as this still appears to be working correctly for me when using the 8.19 version of Jira Server/Data Center.
Cheers,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Andy Heinzer 🙂
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.