使用Project ID或Name python SDK在VersionOne中查找故事名称

时间:2014-06-23 07:51:12

标签: python versionone

我正在使用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

但是如何在项目(范围)内获取故事名称和ID。

1 个答案:

答案 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