2016-08-23 158 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

回答