2016-08-23 160 views
0

我试图更新python中现有的自定义字段,以便我可以自动添加几个可用于下拉框的“值”。下面的线目标的自定义字段我想用python更新JIRA中现有的自定义字段

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

回答