File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,17 @@ class TuleapBugsFieldsID(Enum) :
1414 RemainingDays = 437
1515
1616class 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
2323class 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
2929class 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" )
You can’t perform that action at this time.
0 commit comments