当前位置: 动力学知识库 > 问答 > 编程问答 >

Python VersionOne History is missing changes

问题描述:

Here is what I do when I try to get the History of one Story.

#!/usr/bin/env python

from v1pysdk import V1Meta

v1 = V1Meta(instance_url="https://XXX", username="XXX", password="XXX")

story = v1.Story(224775)

for s in story.History:

print s

todo = [0 if not c.ToDo else int(c.ToDo) for c in s.Children]

hrsdone = [sum([0 if not a.Value else int(a.Value) for a in c.Actuals]) for c in s.Children]

detailestimate = [0 if not c.DetailEstimate else float(c.DetailEstimate) for c in s.Children]

print 'Date', s.ChangeDate, 'detailestimate', detailestimate, sum(detailestimate), 'hrsdone', hrsdone, sum(hrsdone), 'todo', todo, sum(todo)

But when I compare the result with the one from VersionOne website, some changes are missing.

I don't see many dates where the todo or the hours done have been modified.

Here is output logs:

Story(224775:550850)

Date 2016-06-20T11:17:15.713 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [0, 0, 0] 0 todo [32, 16, 16] 64

Story(224775:550909)

Date 2016-06-21T11:00:11.333 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [0, 0, 0] 0 todo [32, 16, 16] 64

Story(224775:551370)

Date 2016-06-29T10:09:53.243 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [46, 8, 8] 62 todo [0, 12, 12] 24

Story(224775:551589)

Date 2016-06-30T09:09:24.303 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [46, 16, 8] 70 todo [0, 4, 12] 16

What should I do to get the missing changes?

分享给朋友:
您可能感兴趣的文章:
随机阅读: