Skip to content

Commit 98ac732

Browse files
CarliCarli
Carli
authored and
Carli
committed
fix work sync on summary task
closes #1
1 parent ec2a1d8 commit 98ac732

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Version 0.0.6
1010
- Fix Bug that percentage done was not calculated correctly :issue:`5`
1111
- Syncing always set Task Type to Fixed Work but revert to original after sync :issue:`6`
1212
- Adding parameter ``--force-fixed-work`` that does not reset the Task Type after sync
13+
- Do not sync work with summary task :issue:`1`
1314

1415
Version 0.0.5
1516
=============

src/syncgitlab2msproject/sync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def update_task_with_issue_data(
132132
task.notes = issue.description
133133
if issue.due_date is not None:
134134
task.deadline = issue.due_date
135-
task.work = int(issue.time_estimated)
135+
if not task.has_children:
136+
task.work = int(issue.time_estimated)
136137
# Update duration in case it seems to be default
137138
if task.duration == DEFAULT_DURATION and task.estimated:
138139
if task.work > 0:

0 commit comments

Comments
 (0)