2017-10-11 115 views
0

,用户具有管理员权限了。蟒蛇JIRA不能过渡问题

输出

Traceback (most recent call last): 
    File "/root/PycharmProjects/pyhunt2/github_test.py", line 75, in <module> 
    main() 
    File "/root/PycharmProjects/pyhunt2/github_test.py", line 71, in main 
    jira_comment() 
    File "/root/PycharmProjects/pyhunt2/github_test.py", line 46, in jira_comment 
    jira.transition_issue(issue, '261') 
    File "/root/PycharmProjects/pyhunt2/jira/client.py", line 108, in wrapper 
    result = func(*arg_list, **kwargs) 
    File "/root/PycharmProjects/pyhunt2/jira/client.py", line 1255, in transition_issue 
    url, data=json.dumps(data)) 
    File "/root/PycharmProjects/pyhunt2/jira/resilientsession.py", line 153, in post 
    return self.__verb('POST', url, **kwargs) 
    File "/root/PycharmProjects/pyhunt2/jira/resilientsession.py", line 146, in __verb 
    raise_on_error(response, verb=verb, **kwargs) 
    File "/root/PycharmProjects/pyhunt2/jira/resilientsession.py", line 56, in raise_on_error 
    r.status_code, error, r.url, request=request, response=r, **kwargs) 
jira.exceptions.JIRAError: JiraError HTTP 400 url: https://xxxxxxx.atlassian.net/rest/api/2/issue/SBAU-11601/transitions 
    text: Can't move (SBAU-11601). You might not have permission, or the issue is missing required information. If you keep having this problem, contact your Jira Administrator. 

    response headers = {'X-Seraph-LoginReason': 'OK', 'Connection': 'close', 'transfer-encoding': 'chunked', 'X-AUSERNAME': 'xxxxx', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'Atlassian Proxy/0.1.131', 'ATL-vTM-Backend-Time': '991', 'X-AREQUESTID': '528x869535x11', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'X-Content-Type-Options': 'nosniff', 'ATL-vTM-Queue-Time': '0', 'Cache-Control': 'no-cache, no-store, no-transform', 'Date': 'Wed, 11 Oct 2017 08:48:46 GMT', 'ATL-vTM-Time': '991'} 
    response text = {"errorMessages":["Can't move (SBAU-11601). You might not have permission, or the issue is missing required information. If you keep having this problem, contact your Jira Administrator."],"errors":{}} 
+0

是否要在工作流程中设置转换? –

回答

0

有两件事情,我理解你从错误日志:

  1. 你有机会在这个问题上实际执行的过渡?只需转到您的jira服务器,并检查您是否可以手动对问题进行转换?

  2. 您为转换指定的“Id”是否与您的jira工作流程相同?您必须发送jira转换ID,而不是执行转换后生成的实际转换名称。