Fixed JIRA sync script
Change-Id: I22ce842257e76fcf0b4484f31971a47daf03b88f
This commit is contained in:
@@ -335,16 +335,16 @@ def sync_jira_with_launchpad(url, user, password, project, project_key):
|
||||
sync = False
|
||||
duplicated = False
|
||||
|
||||
for Jbug2 in jira_bugs:
|
||||
if Jbug2['title'] == Jbug['title'] and Jbug2['key'] != Jbug['key']:
|
||||
duplicated = True
|
||||
|
||||
for Lbug in launchpad_bugs:
|
||||
if (Lbug['title'] in Jbug['title'] or
|
||||
Lbug['key'] in Jbug['title'] or
|
||||
'Launchpad Bug' in Jbug['title']):
|
||||
sync = True
|
||||
|
||||
for Jbug2 in jira_bugs:
|
||||
if Jbug2['title'] == Jbug['title'] and Jbug2['key'] != Jbug['key']:
|
||||
duplicated = True
|
||||
|
||||
if not sync and not duplicated:
|
||||
lp_project = launchpad.projects[project]
|
||||
new_bug = create_lp_bug(launchpad, lp_project, Jbug['title'],
|
||||
|
||||
Reference in New Issue
Block a user