我正在使用VersionOne Python SDK,并想知道某个项目(Scope)中的故事名称我有 project(Scope)id和name,使用此项目ID和名称如何获取Story ID和Name?
v1 = V1Meta()
用于v1.Scope.select中的scopeobj('ID','Name')。其中(Name ='Work Management'): print scopeobj.ID #his print the scpe ID
答案 0 :(得分:1)
你可以使用这种方法:
“过滤器”运算符将采用任意V1过滤条件。
Here's the Documentation about that:
v1 = V1Meta()
for story in v1.Story.filter("Scope.ID='Scope:1122'"):
print story
print story.Name