You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/01/15 16:19:26 UTC
[kibble-scanners] branch master updated: we can't work on a jira
ticket without fields data
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git
The following commit(s) were added to refs/heads/master by this push:
new 29c9a41 we can't work on a jira ticket without fields data
29c9a41 is described below
commit 29c9a41be969f73322876f9d1b192aa31204e18d
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Jan 15 17:19:17 2018 +0100
we can't work on a jira ticket without fields data
---
src/plugins/scanners/jira.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/plugins/scanners/jira.py b/src/plugins/scanners/jira.py
index 1295576..46961ad 100644
--- a/src/plugins/scanners/jira.py
+++ b/src/plugins/scanners/jira.py
@@ -145,7 +145,12 @@ def scanTicket(KibbleBit, key, u, source, creds, openTickets):
KibbleBit.pprint("Closed but no closer??")
closerEmail = None
status = 'closed' if st else 'open'
-
+
+ # Make sure we actually have field data to work with
+ if not tjson.get('fields') or not tjson['fields'].get('created'):
+ KibbleBit.pprint("[%s] JIRA response is missing field data, ignoring ticket." % key)
+ return False
+
cd = getTime(tjson['fields']['created'])
rd = getTime(tjson['fields']['resolutiondate']) if 'resolutiondate' in tjson['fields'] and tjson['fields']['resolutiondate'] else None
comments = 0
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].