0
我無法通過我的Gadget應用程序從URL http://:2990/jira/rest/greenhopper/1.0/sprints/1獲取GreenHopper REST API的響應。如何從Ghopget中的Greenhopper REST API獲取JSON響應?
當我從瀏覽器中嘗試它時,我能夠得到以下輸出,下面是輸出。
{"sprints":[{"id":1,"name":"Sprint 1","closed":false}],"rapidViewId":1}
我的代碼片段以檢索在小工具衝刺細節是:
args: {
key: "sprints",
ajaxOptions: function() {
return {
url: "/rest/greenhopper/1.0/sprints/1",
};
}
}
有誰能夠sugget我如何從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)