我正在尝试使用https://github.com/steves/node-jira阅读问题,但是出现错误
401: Unable to connect to JIRA during findIssueStatus.
这是我在 localhost:8433 上使用下面的代码的代码
var jiraApi = require('jira').JiraApi;
var config = {
"username": "name@email.com",
"password": "password",
"port": 443,
"host": "company.atlassian.net"
}
var issueNumber = "ABC-1";
var jira = new jiraApi('https', config.host, config.port, config.username, config.password, '2');
jira.findIssue(issueNumber, function(error, issue) {
console.log('Status: ' + issue.fields.status.name);
});