Forums

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

Jira rest api internal server error 500

Shweta_Oak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2020

when I use the rest api  `/rest/api/2/issue/<issueId> ` it returns the error: server error 500 for some tickets, and for some other tickets it works fine. 

1 answer

1 accepted

0 votes
Answer accepted
Lasse Langhorn
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.
May 20, 2020

Hi @Shweta_Oak

I think you will have to check the log files in order to find the root cause for this.

Links:

JIra log files location

Regards

Lasse Langhorn

Shweta_Oak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2020

Thanks for the answer @Lasse Langhorn , 

I discovered that the error is in the sprint return type: 

as per this notice: https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-tostring-representation-of-sprints-in-get-issue-response/

the sprint type should be toString currently, however, until yesterday, the sprint type I was receiving was json, and now it is changed to the toString, which is why finding tickets with sprint fails and for tickets that dont have sprint, it works. 

 

Any idea why this happened, and what is the work around? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events