Forums

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

I am getting 404 error for rest api on jira

jai shree ram
Contributor
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

3 votes
Answer accepted
DPKJ
Community Champion
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
Contributor
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 30, 2021

@DPKJ 

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

Suggest an answer

Log in or Sign up to answer