From addf5e45a94b9d88f2715b8322e826d1d6c4438d Mon Sep 17 00:00:00 2001 From: guyonroche Date: Tue, 29 Nov 2016 10:27:40 +0000 Subject: [PATCH] Fix issue #105 - issueLink returns 201 Created, not 200 --- lib/jira.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jira.js b/lib/jira.js index 190e2661..cef6cfc6 100644 --- a/lib/jira.js +++ b/lib/jira.js @@ -593,7 +593,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor return; } - if (response.statusCode !== 200) { + if (response.statusCode !== 201) { callback(response.statusCode + ': Unable to connect to JIRA during issueLink.'); return; }