本文整理汇总了Python中jira.JIRA.sprint_info方法的典型用法代码示例。如果您正苦于以下问题:Python JIRA.sprint_info方法的具体用法?Python JIRA.sprint_info怎么用?Python JIRA.sprint_info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jira.JIRA
的用法示例。
在下文中一共展示了JIRA.sprint_info方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set
# 需要导入模块: from jira import JIRA [as 别名]
# 或者: from jira.JIRA import sprint_info [as 别名]
sprint.name.startswith('Release Squad Sprint')
)
jql = 'sprint = {sprint_id}'.format(sprint_id=sprint.id)
issue_search_results = jira.search_issues(jql)
issues = set(jira.issue(issue.key, expand='changelog') for issue in issue_search_results)
issues_moved_into_sprint = []
for issue in issues:
for history in issue.changelog.histories:
for item in history.items:
if item.field == 'Sprint' and str(sprint.id) in item.to:
issues_moved_into_sprint.append(
{
'date_moved_to_sprint': parser.parse(history.created).date(),
'issue': issue,
}
)
sprint_info = jira.sprint_info(board_id=board.id, sprint_id=sprint.id)
sprint_start_date = parser.parse(sprint_info['startDate'])
issues_added_at_start = [
issue['issue'].key, issue['issue'].fields.status.name for issue in issues_moved_into_sprint if
# issue['date_moved_to_sprint'] == sprint_start_date and
issue['issue'].fields.status.name != u'Open'
]
print " ".join(issues_added_at_start)