0

私の要件は、フィルターに存在する問題のラベルを更新したいということです。

import jira.client
    from jira.client import jira

    options = {'server': 'https://URL.com"}
    jira = JIRA(options, basic_auth=('username], 'password'))
    issue = jira.search_issues('jqlquery')
    issue.update(labels=['Test']

「Resultlist」オブジェクトに属性「update」がないことを示す属性エラーが表示されます。

4

2 に答える 2

1

http://jira-python.readthedocs.org/en/latest/の jira-python ドキュメントに記載されて います。

issue = jira.issue(issue.key)

変更可能なオブジェクトを取得するには

# You can update the entire labels field like this
issue.update(labels=['AAA', 'BBB'])

# Or modify the List of existing labels. The new label is unicode with no spaces
issue.fields.labels.append(u'new_text')
issue.update(fields={"labels": issue.fields.labels})
于 2014-12-03T17:37:27.707 に答える