getting internal server error 500 while i am trying to get the commits from jira using rest api

t-gajula December 25, 2019

this is the command i am using

 

curl -D-  -u-  <username:APItoken>  https://Domain.atlassian.net/rest/dev-status/latest/issue/detail?issueId=14154&applicationType=stash&dataType=repository

anything wrong in the command?

 

error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>500</status-code><message>applicationType</message><stack-trace></stack-trace></status>

 

 

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 30, 2019

Hello @t-gajula ,

The endpoint `dev-status` is not a public API, so it falls into a grey area where there is no public documentation available for the formatting at this time and it's subject to change without notice, so it usually requires a bit of trial and error to get the formatting nailed down.  Some details on this can be seen in the feature request to make this one finalized and public:

However looking at the call you have above on initial glance, it looks like you are just missing the header info.  Can you try it with the following details added in:

curl -D- -u <USER@EMAIL:API_TOKEN> -X GET -H "Content-Type: application/json" https://BASE_URL.atlassian.net/rest/dev-status/latest/issue/detail?issueId=<issue_id>&applicationType=stash&dataType=repository

 Let me know if this works for you.

Regards,
Earl

t-gajula January 1, 2020

No its not working still getting internal server 500

Suggest an answer

Log in or Sign up to answer