From 414939eebc09678ff007654557e215a07935fa07 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 10 Aug 2016 17:25:36 +0200 Subject: [PATCH] fix: fix epicName parsing --- bookmarklet.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 4319cfc..3756d09 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -705,10 +705,16 @@ $.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' } + if (key == 'customfield_10007'){ + fieldName = 'epicName' + } + if (key == 'customfield_10002'){ + fieldName = 'storyPoints' + } + //console.log("add new field: " + fieldName + " with value from " + key); responseData.fields[fieldName] = responseData.fields[key]; }