如何使用JS从JIRA中拉取数据?

How to pull data from JIRA using JS?

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

它将跟踪现有资源是否有足够的时间 time/bandwidth 来交付即将到来的 JIRA 票证。

求助!!

你应该使用REST-API of JIRA in combination with angular http client。这是您应该使用 angular.

完成的第一批教程之一

因评论而编辑: JIRA REST API 和 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")
});