Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

No its not working still getting internal server 500

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you