0

我无法通过我的 Gadget 应用程序从 GreenHopper REST API 获取 URL http://:2990/jira/rest/greenhopper/1.0/sprints/1 的响应。

当我从浏览器尝试时,我能够得到以下输出,下面是输出。

 {"sprints":[{"id":1,"name":"Sprint 1","closed":false}],"rapidViewId":1}

我在 Gadget 中检索 sprint 详细信息的代码片段是:

args: {
     key: "sprints",
    ajaxOptions: function () {
    return {                                
        url: "/rest/greenhopper/1.0/sprints/1",
           };
     }
 }

任何人都可以建议我如何从 greenhopper REST API 获取 JIRA 仪表板的 JSON 响应。

我在服务器中收到以下异常:

 [talledLocalContainer]   at java.lang.Thread.run(Thread.java:662)
 [talledLocalContainer] 2013-04-25 15:26:58,985 http-2990-11 ERROR admin 926x5323x1            dggnll 172.27.186.82 /rest/greenhopper/1.0/sprints/1      

 [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service
 [talledLocalContainer] javax.ws.rs.WebApplicationException
 [talledLocalContainer]   at   com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66)
 [talledLocalContainer]   at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
4

1 回答 1

0

That's the right URL so maybe the sprint doesn't exist or you don't have permission to view it? Also, try using the Developer Workbox add-on and the REST API browser to test these kind of methods.

于 2013-04-25T16:25:16.477 回答