pythonrestapicctv_使用pythonrestapi在JIRA中创建问题和自定义字段

本文介绍如何使用JIRA Python模块通过RestAPI创建新的问题,将数据从CSV文件导入,并格式化以匹配JIRA中的自定义字段。在创建问题时遇到错误,导致在'Comments'字段显示索引而非预期字符串。
摘要由CSDN通过智能技术生成

我正在使用JIRA Python模块,它是restapi的扩展,用于自动删除和创建JIRA中的问题。我试图在JIRA中使用python脚本中的“for”循环创建问题,该脚本使用从另一个数据库收集的导入数据。我需要在创建问题时格式化字段,以便我的数据可以与JIRA中的适当字段正确对齐。我的Python代码如下,用于创建问题并存储要放入JIRA的数据,JIRA存储在自定义变量中:

df包含13列数据,我想通过创建新问题输入JIRA。在JIRA中,每列代表一个问题的不同字段。在JIRA中创建的每个新问题都应该从每个专栏中获取信息:from jira.client import JIRA

import pandas as pd

# Now we input the issues from the export.csv CSV file into the fields

# of new issues that are being created in JIRA to replace the old ones that were

# deleted

df = pd.read_csv('C:\\Python27\\scripts\\export.csv')

# Set the column names from the export.csv file equal to variables using the

# pandas python module

# Now do the actual loop to create new issues

for row in df:

cqid = df['ClearQuest ID']

summ = str(df.Summary)

datecreat

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值