当前位置: 首页>>代码示例>>Python>>正文


Python Search.get_issue_count方法代码示例

本文整理汇总了Python中search.Search.get_issue_count方法的典型用法代码示例。如果您正苦于以下问题:Python Search.get_issue_count方法的具体用法?Python Search.get_issue_count怎么用?Python Search.get_issue_count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在search.Search的用法示例。


在下文中一共展示了Search.get_issue_count方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_issues_with_label

# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
def get_issues_with_label():
	i = 0
	y = 0
	for label in labels:
		issues = Search(search_query + "AND labels = '%s'" % label)
		print(label)
		print("%s total issues. %s total points.") % (
			issues.get_issue_count(), issues.get_point_sum())
		i = i + issues.get_point_sum()
		y = y + issues.get_issue_count()
	print("Total issues: %s Total Points: %s") % (y, i)
开发者ID:joeracker,项目名称:jiraTracker,代码行数:13,代码来源:ea_progress.py

示例2: get_issues_no_label

# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
def get_issues_no_label():
	issues = Search(search_query + "AND labels NOT IN('%s')" % label)
	print(label)
	print("%s total issues. %s total points.") % (
		issues.get_issue_count(), issues.get_point_sum())
开发者ID:joeracker,项目名称:jiraTracker,代码行数:7,代码来源:ea_progress.py

示例3: len

# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
###### Sprint Closing Metrics ########
if len(sys.argv) > 1:
	current_sprint = sys.argv[1]
else:
	print("Sprint ID required. Example: script_name.py 3234")
	sys.exit()

# https://one.rackspace.com/display/cdns/Sprint+Planning
issues_closed = Search(
	'project = "Cloud DNS"'
	' AND Sprint in (%s)'
	' AND status in ("Research Done", "closed")'
	' ORDER BY cf[10008] DESC' % current_sprint)
print("%s total issues. %s total points.") % (
	issues_closed.get_issue_count(), issues_closed.get_point_sum())

ea_issues_closed = Search(
	'priority = Blocker'
	' AND project = "Cloud DNS"'
	' AND Sprint = %s'
	' AND status in ("Research Done", "closed")'
	'  ORDER BY cf[10008] DESC' % current_sprint)
print("%s EA issues. %s EA points.") % (ea_issues_closed.get_issue_count(), ea_issues_closed.get_point_sum())

ea_remain = Search('priority = Blocker'
	' AND project = "Cloud DNS"' 
	' AND status not in ("closed")')
print("%s issues and %s pointsremain in EA") % (ea_remain.get_issue_count(), 
	ea_remain.get_point_sum())
开发者ID:joeracker,项目名称:jiraTracker,代码行数:31,代码来源:sprint_metrics.py


注:本文中的search.Search.get_issue_count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。