Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用python更新JIRA中现有的自定义字段_Python_Jira - Fatal编程技术网

使用python更新JIRA中现有的自定义字段

使用python更新JIRA中现有的自定义字段,python,jira,Python,Jira,我正在尝试更新python中现有的自定义字段,以便能够自动添加几个可在下拉框中使用的“值”。下面的行指向我想要的自定义字段 for a in jira.fields(): if a['name'] == "block": #print a.update(fields={'customfield_12100': {'value': "testingtest"}}) print a 我知道这一点,因为它返回正确的字段: {u'name': u'block',

我正在尝试更新python中现有的自定义字段,以便能够自动添加几个可在下拉框中使用的“值”。下面的行指向我想要的自定义字段

for a in jira.fields():
    if a['name'] == "block":
        #print a.update(fields={'customfield_12100': {'value': "testingtest"}})
        print a
我知道这一点,因为它返回正确的字段:

{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安装完成。必须安装第三方插件

这不能通过OOB Jira安装来完成。必须安装第三方插件