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


Python JIRA.create_component方法代码示例

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


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

示例1: lists

# 需要导入模块: from jira import JIRA [as 别名]
# 或者: from jira.JIRA import create_component [as 别名]
###Component match
cMatch=re.compile('^BFB.*')

###Get 'raw' lists (Jira classes are not so handy)
listSrc=[]
listDst=[]

for i in projSrc:
 if cMatch.match(str(i)):
  listSrc.append(str(i))
  
for i in projDst:
 if cMatch.match(str(i)):
  listDst.append(str(i))

###Get absent strings
toAdd=[]

for item in listSrc:
 if item not in listDst:
  toAdd.append(item)

####Add absent strings to project components.
if toAdd != []:
 for item in toAdd:
  print ("Adding absent component:", item)
  jira.create_component(name=item,project=args.dest,description='Business Component',assigneeType='UNASSIGNED')
else:
 print ("Nothing to add.")
开发者ID:NewOne121,项目名称:scripts,代码行数:31,代码来源:projsync.py


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