in notifier.py [0:0]
def notify_jira(self, jopts, prid, prtitle, prmessage, prlink):
try:
m = RE_JIRA_TICKET.search(prtitle)
if m:
jira_ticket = m.group(1)
if "worklog" in jopts or "comment" in jopts:
print("[INFO] Adding comment to %s" % jira_ticket)
if not DEBUG:
self.jira_update_ticket(jira_ticket, prmessage, True if "worklog" in jopts else False)
if "link" in jopts:
print("[INFO] Setting JIRA link for %s to %s" % (jira_ticket, prlink))
if not DEBUG:
self.jira_remote_link(jira_ticket, prlink, prid)
if "label" in jopts:
print("[INFO] Setting JIRA label for %s" % jira_ticket)
if not DEBUG:
self.jira_add_label(jira_ticket)
except Exception as e:
print("[WARNING] Could not update JIRA: %s" % e)