如何使用Python Rally API获取给定缺陷的讨论
我试图使用Python rally API获取给定缺陷的所有讨论,但失败了, 下面的代码不起作用如何使用Python Rally API获取给定缺陷的讨论,python,rest,rally,Python,Rest,Rally,我试图使用Python rally API获取给定缺陷的所有讨论,但失败了, 下面的代码不起作用 from pyral import Rally defect_id = 'DE12345' rally = Rally(server, apikey=apikey, workspace=workspace, project=project) defect = rally.get('ConversationPost', query='FormattedID = %s' % defect_id, in
from pyral import Rally
defect_id = 'DE12345'
rally = Rally(server, apikey=apikey, workspace=workspace, project=project)
defect = rally.get('ConversationPost', query='FormattedID = %s' % defect_id, instance=True)
有人知道实现这一目标的正确方法吗?谢谢 由于您的请求正在收回ConversationPost,因此查询将根据ConversationPost的格式化ID进行过滤,而不是根据与讨论相关联的缺陷ID进行过滤 要针对与讨论相关联的缺陷的格式化ID,请改用以下方法:
query='Artifact.FormattedID = %s'
请注意,我们在这里指定的是“工件”而不是“缺陷”,因为讨论可以与任何类型的工件(用户故事、投资组合项目等)相关联。就是这样!谢谢