2014-04-07 5 views
0
  from jira.client import JIRA 
      from jira.exceptions import JIRAError 
      from jira.resources import Attachment, Comment, 
     import time 
     import types 
     from sets import Set 
     import xlrd 
     import sys, getopt 
     import getpass 

     sel_server = 'https://dkbdkb7qja.ww007.net/' 
     sel_user = "[email protected]" 
     password = getpass.getpass() 
     password: 
     jira = JIRA(basic_auth=(sel_user, password), options={'server': sel_server, 'verify': False}) 

    issue = jira.issue("EHSTRACKER-54") 

    new_issue = jira.create_issue(project={"key":"EHSTRACKER"}, 

    summary = "New issue from jira-python", 

    description= "Look into this one", 

    customfield_13401= "karthi", 

customfield_13403={"value":"low"}, 

customfield_13404={"value":"Other"}, 

priority={"name":"Minor"}, 

issuetype={"name":"EHS"}) 

i'm getting the following below error 
===================================== 

역 추적을 통해 새로운 문제 (마지막으로 가장 최근 통화) 만들 수 없습니다 : C " 파일에, 8 호선," 파일을 ": \ Python27 \ lib 디렉토리의 \ 사이트 - 패키지 \ jira_python- 0.16-py2.7.egg \ jira \ client.py ", 485 행, create_issue raise_on_error (r) 파일"C : \ Python27 \ lib \ site-packages \ jira_python-0.16-py2.7.egg \ jira \ exceptions.py "raise_on_error 인상 JIRAError (r.status_code, 오류, r.url)에서, 라인 (47)는 jira.exceptions.JIRAError : 400 HTTP :"옵션 아이디 '널 (null)'는 수JIRA 파이썬 나머지 API를

"유효하지 않습니다 어느 누구도이 오류가 무엇인지 알려주고 어떻게 해결할 수 있을까요?

답변

0

customfield_13403 = { "값": "낮음"} ->이 사용자 정의 필드에 대해 "소문자"에서 첫 번째 문자 값을 제공했습니다. '선택 목록'값은 대소 문자 구분이 "낮음"입니다. customfield_13403 = { "value": "Low"}를 제공했습니다. 이것 때문에 나를 위해 일합니다.

관련 문제