Forum Discussion

hpmtissera's avatar
hpmtissera
Frequent Visitor
4 years ago
Solved

What is the Zephyr for JIRA Server REST api base URL?

I am trying to test Zephyr for JIRA rest API using a JIRA Server trial installed on my local workstation. JIRA is running on 

http://localhost:8080

 

I referred the doc https://zephyrdocs.atlassian.net/wiki/spaces/DEVELOPER/pages/33095703/REST+API

 

It clearly say the base URL for api requests is 

http://SERVER[:PORT]/jira/rest/zapi/latest

 

So in my case I assume it should be

http://localhost:8080/jira/rest/zapi/latest

 

So using this as the base URL I tried to send a REST GET request as following

 

http://localhost:8080/jira/rest/zapi/latest/zchart/issueStatuses?projectId=TEST

 

I have a project with an ID called TEST. I sent this request using Postman with Basic Auth authorization credentials and I got a 404 NOT FOUND.

 

I tried the same request on the browser while I logged in to JIRA but didn't succeed.

 

Appreciate, if someone can give me an example of a correct REST call when JIRA running on http://localhost:8080

 

JIRA Server - Jira v8.13.2

Zephyr for JIRA - 5.6.5.56508907

 

 

 

  • While the documentation states to include `jira` in the URL, the only way for it to work for me is to exclude it. The following should work, replacing <projectID> with the appropriate numerical ID of your project. Note: "TEST" is the project key and not the project ID. The project ID is integer based (example: 1234).

     

    http://localhost:8080/rest/zapi/latest/zchart/issueStatuses?projectId=<projectID>

     NOT

    http://localhost:8080/jira/rest/zapi/latest/zchart/issueStatuses?projectId=<projectID>

     

2 Replies

  • foxjosh's avatar
    foxjosh
    New Contributor

    While the documentation states to include `jira` in the URL, the only way for it to work for me is to exclude it. The following should work, replacing <projectID> with the appropriate numerical ID of your project. Note: "TEST" is the project key and not the project ID. The project ID is integer based (example: 1234).

     

    http://localhost:8080/rest/zapi/latest/zchart/issueStatuses?projectId=<projectID>

     NOT

    http://localhost:8080/jira/rest/zapi/latest/zchart/issueStatuses?projectId=<projectID>

     

    • BibekBehera's avatar
      BibekBehera
      SmartBear Alumni (Retired)

      Based on the documentation the /JIRA is just a context that is added to your company's URL. There are chances that the URL can look like yourcompany.com/JIRA, yourcompany.com/Confluence. Hence you can chose to add/remove the /JIRA part in the request based on how your JIRA is hosted.