Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/409.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用JS从JIRA提取数据?_Javascript_Html_Json_Angular_Jira - Fatal编程技术网

Javascript 如何使用JS从JIRA提取数据?

Javascript 如何使用JS从JIRA提取数据?,javascript,html,json,angular,jira,Javascript,Html,Json,Angular,Jira,我想使用JS从我的JIRA帐户中提取数据,因为我想自动化一件事,即时间跟踪 它将跟踪现有资源是否有足够的时间/带宽来交付即将到来的JIRA门票 请帮忙 您应该结合使用。这是您应该已经使用angular完成的第一个教程之一 因评论而编辑: jirarestapi和JQL应该可以工作。应该是这样的: $http({ method: "GET", url: 'http://my-url/rest/api/2/search?jql=' + 'reporter=reporterXY

我想使用JS从我的JIRA帐户中提取数据,因为我想自动化一件事,即时间跟踪

它将跟踪现有资源是否有足够的时间/带宽来交付即将到来的JIRA门票

请帮忙

您应该结合使用。这是您应该已经使用angular完成的第一个教程之一

因评论而编辑: jirarestapi和JQL应该可以工作。应该是这样的:

$http({
    method: "GET",
    url: 'http://my-url/rest/api/2/search?jql=' +
    'reporter=reporterXY' +
    '&project=projectXY'
}).then(function successCallback(response) {
    return response.data;
}, function errorCallback() {
    console.log("Error calling API")
});

是的,这是一个合适的解决方案,但是可以使用JS中的JQL(JIRA查询语言)来完成吗?您说过您只想从JIRA服务器中提取数据,这应该通过使用JQL字符串对JIRA REST API进行简单的GET调用来实现。编辑了我的答案。