From a0c5d0ce3556cd08a27818646e097d6200386af2 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 10 Aug 2016 17:01:59 +0200 Subject: [PATCH] fix: fix epicLink parsing --- bookmarklet.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 0619a61..4319cfc 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -13,7 +13,7 @@ } var global = {}; - global.version = "4.6.2"; + global.version = "4.6.3"; global.issueTrackingUrl = "github.com/qoomon/Jira-Issue-Card-Printer"; global.isDev = document.currentScript == null; @@ -705,6 +705,10 @@ $.each(responseData.names, function(key, value) { if (key.startsWith("customfield_")) { var fieldName = value.toCamelCase(); + // due to fielName is null sometimes for epicLink custom field + if (key == 'customfield_10006'){ + fieldName = 'epicLink' + } //console.log("add new field: " + fieldName + " with value from " + key); responseData.fields[fieldName] = responseData.fields[key]; }