2017-10-11 83 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,而不是執行轉換後生成的實際轉換名稱。