3
updated_issue = jira.transition_issue(origin_issue.key,
                                                 '5',
                                                 {'id': 'Resolution',
                                                  'values': '6'}
                                                )

In this case I am talking to JIRA 5.1.5 through the jira-python library and their transition_jira method. In this case '5' means resolve jira and '6' is the new status that updated jira will have '6' means DELIVERED ...

I try this code and the jira does not change the resolution field from unresolved to delivered

The error that I get is : u'Field \'id\' cannot be set. It is not on the appropriate screen, or unknown.'

Why?

4

1 回答 1

0

您是否尝试过以下设置:

updated_issue = jira.transition_issue(origin_issue.key,
                                             '5',
                                             {'id': '6'}
                                            )

我基于最近的JIRA REST API 文档,它使用以下 JSON 脚本:

{
"update": {
    "comment": [
        {
            "add": {
                "body": "Bug has been fixed."
            }
        }
    ]
},
"fields": {
    "assignee": {
        "name": "bob"
    },
    "resolution": {
        "name": "Fixed"
    }
},
"transition": {
    "id": "5"
}

}

于 2013-07-03T07:23:38.337 回答