The jira server is EE 9.17.5
I use this endpoint URL (/rest/api/2/issue/<jira-ticket-key>?fields=key,summary) to retrieve the jira ticket info, with Authorization header, and Accept header set to application/json.
It seems the rest server needs warm up. The first couple tries always come back with 500 code (internal server error); eventually the GET request comes back with 200 code, with content in JSON format.
Then I tried with the v3 api (/rest/api/3/issue/<jira-ticket-key>?fields=key,summary) with exactly the same headers. The response code is 200, but the content is in HTML format.
Hello @harry sheng
Refer to the Jira DC v9.17.5 REST API documentation.
Hello @harry sheng
Jira has depcreciated the v2 API, so you need to use the v3 API.
You can get more information on below Atlassian KB articles
https://developer.atlassian.com/server/jira/platform/integrating-with-jira-server/
https://developer.atlassian.com/server/jira/platform/rest/v11001/intro/#gettingstarted
Thanks
Jayesh R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira has depcreciated the v2 API, so you need to use the v3 API.
That is completely wrong @Jayesh
The v2 REST API absolutely has not been deprecated, and given that the OP is using Jira DATA CENTER, which does not have a v3 REST API, your advice would be impossible for them to follow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sunny Ape Thanks for the clarification, appreciated your response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @harry sheng
Yes v2 api is depreciated by Jira you will need to use v3 API only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is completely wrong @Jayesh Raghuvanshi
The v2 REST API absolutely has not been deprecated, and given that the OP is using Jira DATA CENTER, which does not have a v3 REST API, your advice would be impossible for them to follow.
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.