jira-connector
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -231,8 +231,9 @@ "use strict"; | ||
this.assignIssue = function (opts, callback) { | ||
if (!opts.assignee) { | ||
if (typeof opts.assignee === "string" && opts.assignee.length || opts.assignee === null) { | ||
var options = this.buildRequestOptions(opts, '/assignee', 'PUT', {name: opts.assignee}); | ||
this.jiraClient.makeRequest(options, callback, 'Issue Assigned'); | ||
} else { | ||
throw new Error(errorStrings.NO_ASSIGNEE_ERROR); | ||
} | ||
var options = this.buildRequestOptions(opts, '/assignee', 'PUT', {name: opts.assignee}); | ||
this.jiraClient.makeRequest(options, callback, 'Issue Assigned'); | ||
}; | ||
@@ -239,0 +240,0 @@ |
{ | ||
"name": "jira-connector", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Easy to use NodeJS wrapper for the Jira REST API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
233139
5114