Can anyone please help me??
At the moment i am using the following node.js modules to access the Jira Api
https://github.com/jira-node/node-jira-client
My Code-----------------------------------------------
var JiraApi = require('jira-client');
// Initializevar jira = new JiraApi({
protocol: 'https',
host: 'wooldigital.atlassian.net',
username: 'xxxxxxxxxxxxxx',
password: 'xxxxxxxxxxxxxxxx',
apiVersion: '2',
strictSSL: true});
// ES5// We are using an ES5 Polyfill for Promise support. Please note that if you don't explicitly// apply a catch exceptions will get swallowed. Read up on ES6 Promises for further details.
jira.findIssue(issueNumber).then(function(issue) {
console.log('Status: ' + issue.fields.status.name);})
.catch(function(err) { console.error(err);});
----------------------
I am sure it is the right details, but i keep getting the following error :
jira.findIssue(issueNumber)
^
ReferenceError: issueNumber is not defined
at Object.<anonymous> (C:\xxxxxx\xxxxxx\xxxxxxxx\node_modules\index.j
s:20:16)
Is it not suppose to get the issue number automatically from the api ? Anyone help please
start by uncommenting this line:
// Initializevar jira = new JiraApi({
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.