The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do I check my JIRA REST API is working or not?

Ayan Basak
February 15, 2022

I want to check my JIRA REST API is properly working or not.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Pramodh M
Community Champion
February 15, 2022

Hi @Ayan Basak 

To check whether API you have formulated to either get the data or update the data in Jira is proper you can add "-i" header flag which returns status code 200 if it's OK

For example - GET Issue returns details regarding Issue

 
curl -i --request GET \ 
--url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
 
Returns the Issue data along with header which contains Status as well
 
Let me know if you have any queries
 
Thanks,
Pramodh
Ayan Basak
February 16, 2022

Thank you so much for your help. @Pramodh M 

TAGS
AUG Leaders

Atlassian Community Events