From 0f233d73ea6511399ce499659e2752af8a374fc0 Mon Sep 17 00:00:00 2001 From: sidpremkumar Date: Jul 16 2019 17:42:24 +0000 Subject: Add more accurate logs to update title --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index 042e7d9..1f282b1 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -627,6 +627,7 @@ def _update_jira_issue(existing, issue, client): if 'title' in updates: # Update the title if needed if issue.title != existing.fields.summary: + log.info(" Looking for new title") _update_title(issue, existing) # Only synchronize transition (status) for listings that op-in @@ -713,6 +714,7 @@ def _update_title(issue, existing): new_description = existing.fields.description if not new_description: new_description = '' + if '] Upstream Reporter:' not in new_description: # We have to add the issue ID to the description so we can find it again if '] Upstream issue status:' in new_description: @@ -726,7 +728,7 @@ def _update_title(issue, existing): new_description) else: # We can just add it to the top - new_description = '[%s] Upstream Repoter: %s' % \ + new_description = '[%s] Upstream Reporter: %s' % \ (issue.id, issue.reporter['fullname']) + new_description # Update the description # Now that we've updated the description (i.e. added