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

Easiest way to access Jira Service Desk project via REST API



I'm setting up a script to automatically retrieve some stats from my Jira Cloud Service Desk project. In the past I saw Jira provides large API support, so I was expecting it would be pretty easy. Somehow it is taking longer than expected and the doc ( ) doesn't seem to help.

First: Authentication

  • I"m using the credentials of a random Jira Service Desk user (a Service Desk Agent)
  • I tried Basic authentication as it looks the best option
  • I'm making my tests with cUrl, but the requests will be done in Javascript 

Second: Path

  • which is the path that must be used for a simple query on a given service desk project (e.g. how many issues in status X from day A to day B) - I saw it should accept JQL queries

Third: Expansion

  • among of the dozens of tests some actually gave me a JSON response, but some tags were not expanded; even after using the expansion parameters specified in the Documentation


Any suggestion?




1 answer

I eventually had it working


1) encode the string


with Base64

2) add the header

"Authorization: Basic <encoded string>" 

to your cUrl command

Suggest an answer

Log in or Sign up to answer

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