簡體   English   中英

如何使用吡咯獲得用戶故事點?

[英]How to get user story points using pyral?

我正在嘗試從示例示例中修改statecounts.py,以獲取每個發行版的所有已定義/已接受/正在進行/已完成的故事點。 我不斷收到查詢異常錯誤。 有什么我想念的嗎?

state = 'ScheduleState'
state_values = rally.getAllowedValues('HierarchicalRequirement', state)
output = []
for rel in sorted(release_names):
    for state_value in sorted(state_values):
        response = rally.get(artifact_type, fetch="FormattedID", query='(Release.Name= %s ) AND %s = %s' % (rel, state, state_value),
                                projectScopeUp=False, projectScopeDown=False)
        output.append("%20s : %16s : %5d" % (rel, state, state_value, response.resultCount))

謝謝!!!

如果您要對多個術語進行“與”運算,則最容易創建如下術語列表:

query=['Release.Name = %s' % (rel), '%s = %s' % (state, state_value)]

同樣,空格很重要。 您在第一個=之前缺少空格。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM