Skip to content

Commit 5fdcec5

Browse files
tmp
1 parent 2eca80e commit 5fdcec5

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/chargedPlanner/TuleapAPI.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ class TuleapBugsFieldsID(Enum) :
1414
RemainingDays = 437
1515

1616
class TuleapFeatsFieldsID(Enum) :
17-
Title = 445
17+
Title = 916
1818
# Feats are not assigned to an assignee !
1919
# AssignedTo = -100
20-
EstimatedDays = 451
21-
RemainingDays = 452
20+
EstimatedDays = 922
21+
RemainingDays = 923
2222

2323
class TuleapTasksFieldsID(Enum) :
24-
Title = 514
25-
AssignedTo = 518
26-
EstimatedDays = 520
27-
RemainingDays = 521
24+
Title = 985
25+
AssignedTo = 989
26+
EstimatedDays = 991
27+
RemainingDays = 992
2828

2929
class TuleapTechnicalsFieldsID(Enum) :
3030
Title = 1003
@@ -346,8 +346,14 @@ def checkEstimatedDays() -> None:
346346
childrenReminingDaysSum = 0
347347
for artifact in self.__linkedArtifacts__:
348348

349-
childrenEstimatedDaysSum += artifact.getEstimatedDays()
350-
childrenReminingDaysSum += artifact.getRemainingDays()
349+
try:
350+
childrenEstimatedDaysSum += artifact.getEstimatedDays()
351+
childrenReminingDaysSum += artifact.getRemainingDays()
352+
# this happens if artifact does not contain methods getEstimatedDays, getRemainingDays
353+
except AttributeError :
354+
pass
355+
finally:
356+
pass
351357

352358
if childrenEstimatedDaysSum != self.__estimatedDays__ :
353359
raise ValueError("The estimated days for this feature does not correspond to the sum of its children")

0 commit comments

Comments
 (0)