I am getting 404 error for rest api on jira

jai shree ram January 12, 2020

I want to test the rest api of jira and fetch some data from jira.

So I used the below url 

https://my_company_website.com/rest/api/latest/search?jql=assignee=personName

But I am getting 404 ,

I want to know any rest api basic url to check whether rest api is supported or not for my organisation domain name (jira.my_comany.com) 

I am able to access jira  as https://my_company_website.com/jira/secure/Dashboard.jspa

But I want to access it via rest and to do some operations like get the logged hours for particular project.

2 answers

2 accepted

2 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2020

Looking at your Dashboard URL, I can see that you are running your Jira on '/jira' context URL.

So, your REST API Base URL will be, https://xxxxxx/jira/rest/api/latest

And your search URL will be, https://xxxxx/jira/rest/api/latest/search?jql=assignee=amarsha.ng

jai shree ram January 15, 2020

 

@DPKJ ,

Ya its working now because of missing /jira in my url causing problem.

Thanks for your valuable answer

1 vote
Answer accepted
Adrian Stephen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2020

Hi @jai shree ram 

 

You may follow the steps from this page to test basic authentication :

curl -u username:password -X GET -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/createmeta
  • Replace username:password with the correct username & password
  • Replace localhost:8080 with your baseurl. 
William Wilson April 30, 2021

@DPKJ 

This also helped me with an Integration issue. Thank you!

Suggest an answer

Log in or Sign up to answer