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 = "karthikeyan@xxxxxx.com"
        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
=====================================

回溯(最后一次调用):文件“”,第 8 行,文件“C:\Python27\lib\site-packages\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”,第 47 行,在 raise_on_error raise JIRAError(r.status_code, error, r .url) jira.exceptions.JIRAError:HTTP 400:“选项 id 'null' 无效”

谁能告诉这个错误是什么以及如何解决这个问题?

4

1 回答 1

0

customfield_13403={"value":"low"},--> 对于这个自定义字段,我为自定义字段类型“选择列表”提供了“小写”中的第一个字符值,值是区分大小写的“低”。我提供了 customfield_13403 ={“价值”:“低”}。为此,它对我有用。

于 2014-04-08T06:32:04.727 回答