Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
[bugfix] Epics must be pushed before Issues..
Browse files Browse the repository at this point in the history
  • Loading branch information
mafrosis committed Apr 10, 2020
1 parent cf51576 commit 7682aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jira_cli/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ def _run(issues: list, pbar=None) -> int:
# 1. Push existing issues with local changes first
issues_to_push: List[Issue] = [i for i in jira.values() if i.diff_to_original and i.exists]
# 2. Push new epics
issues_to_push.extend(i for i in jira.values() if not i.exists and i.status == 'Epic')
issues_to_push.extend(i for i in jira.values() if not i.exists and i.issuetype == 'Epic')
# 3. Push all other new issues
issues_to_push.extend(i for i in jira.values() if not i.exists and i.status != 'Epic')
issues_to_push.extend(i for i in jira.values() if not i.exists and i.issuetype != 'Epic')

if verbose:
total = _run(issues_to_push)
Expand Down

0 comments on commit 7682aa4

Please sign in to comment.