使用 python 更新 JIRA 中的现有自定义字段
updating existing custom field in JIRA with python
我正在尝试更新 python 中的现有自定义字段,以便我可以自动添加几个可在下拉框中使用的 "values"。下面一行针对我想要的自定义字段
for a in jira.fields():
if a['name'] == "block":
#print a.update(fields={'customfield_12100': {'value': "testingtest"}})
print a
我知道这个是因为它 returns 正确的字段:
{u'name': u'block', u'searchable': True, u'navigable': True, u'custom': True, u'clauseNames': [u'cf[12100]', u'Lease Block'], u'orderable': True, u'id': u'customfield_12100', u'schema': {u'customId': 12100, u'type': u'option', u'custom': u'com.atlassian.jira.plugin.system.customfieldtypes:select'}}
但是新值没有添加到我的自定义字段选项列表中。您如何增加价值?
Jira 版本 7.1.7
OOB Jira 安装无法完成。必须安装第三方插件 https://marketplace.atlassian.com/plugins/jiracustomfieldeditorplugin/server/overview。
我正在尝试更新 python 中的现有自定义字段,以便我可以自动添加几个可在下拉框中使用的 "values"。下面一行针对我想要的自定义字段
for a in jira.fields():
if a['name'] == "block":
#print a.update(fields={'customfield_12100': {'value': "testingtest"}})
print a
我知道这个是因为它 returns 正确的字段:
{u'name': u'block', u'searchable': True, u'navigable': True, u'custom': True, u'clauseNames': [u'cf[12100]', u'Lease Block'], u'orderable': True, u'id': u'customfield_12100', u'schema': {u'customId': 12100, u'type': u'option', u'custom': u'com.atlassian.jira.plugin.system.customfieldtypes:select'}}
但是新值没有添加到我的自定义字段选项列表中。您如何增加价值?
Jira 版本 7.1.7
OOB Jira 安装无法完成。必须安装第三方插件 https://marketplace.atlassian.com/plugins/jiracustomfieldeditorplugin/server/overview。