问题描述
我正在尝试通过构建字典使用 python 逻辑更新 JIRA 中的单选按钮字段。构建字典后,当我尝试在 JIRA 中创建问题时,收到一条错误消息 -
'customfield_10543': "Option id 'null' is not valid"}
Python 逻辑:
options = ['10461','10462']
new_issues = []
new_issue = {
'project': {"key":"Test"},'summary': 'Test Summary','description': 'Test issue by Jira Integration'
)
if df.having_pet.iloc[i] == 'YES':
new_issue[having_pet] = {'value':options[0]}
if df.having_pet.iloc[i] == 'NO':
new_issue[having_pet] = {'value':options[1]}
new_issues.append(new_issue)
jira.create_issues(field_list=new_issues)
Chrome Inspector 中的 HTML 组件:
<input class="radio" id="customfield_10543-1" name="customfield_10543" type="radio" value="10461" resolved="">
<label for="customfield_10543-1">
Yes
</label>
<input checked="checked" class="radio" id="customfield_10543-2" name="customfield_10543" type="radio" value="10462" resolved="">
<label for="customfield_10543-2">
No
</label>
请告知如何根据我拥有的数据框更新 JIRA 上的单选按钮。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)