Access REST API on JIRA 4.3.4

J Wang October 12, 2011

I installed JIRA4.3.4(default) but could not get REST API working on the server. It complains about resource not found. I am wondering if any customization/configuration or plugin installation is needed to get REST API working. Thanks.

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
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.
October 12, 2011

Make sure Accept Remote API Calls is turned ON under General Configuration : http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+Options

Jobin Kuruvilla [Adaptavist]
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.
October 13, 2011

Can you check if the REST plugin is enabled? Also, what do you see when you try jira/rest/api/2.0.alpha1/issue/abc-123 ?

J Wang October 13, 2011

The Accept Remote API call is on. But I still could not get any result using jira/rest/api/2.0.alpha1/issue/abc-123&os_username=xxx&os_password=yyy. It complained the requested resource ... is not available.

J Wang October 13, 2011

message /jira/rest/api/2.0.alpha1/issue/ALM-121

description The requested resource (/jira/rest/api/2.0.alpha1/issue/ALM-121) is not available.

Jobin Kuruvilla [Adaptavist]
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.
October 13, 2011

Can you open the same url in your browser? ${jira_base_url}/rest/api/2.0.alpha1/issue/ALM-121.

The base url should be the url to the jira instance. include /jira only if it is in the context path!

J Wang October 13, 2011

JIRA REST Plugin 4.3.4 is enabled.

We changed JIRA server port to 8668 due to other applications running on the same server. Is there any other place we need to check/change due to the port change? We can do login and sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml? but not the JIRA REST call.

J Wang October 13, 2011

It works. Thanks.

Is there any API/package available to parse the JSON response?

Jobin Kuruvilla [Adaptavist]
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.
October 13, 2011
J Wang October 13, 2011

Is there any API to retrive the rest URL part(rest/api/2.0.alpha1/) based on jira server's ip and port? Thanks.

Suggest an answer

Log in or Sign up to answer