首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >源和区域字段的Python Jira API屏幕错误

源和区域字段的Python Jira API屏幕错误
EN

Stack Overflow用户
提问于 2016-05-30 21:03:19
回答 1查看 386关注 0票数 0

我正在尝试创建Jira问题使用Python-Jira API,但得到屏幕错误的来源和地区fields.Please帮助我解决同样的问题。

错误:

代码语言:javascript
复制
Exception Value:    
JiraError HTTP 400
 text: Field 'source' cannot be set. It is not on the appropriate screen, or unknown.
url: http://jira.corp.inmobi.com/rest/api/2/issue
response headers = {'X-AUSERNAME': 'Vivek.Sinha', 'X-ASEN': 'SEN-2505611', 'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'X-Seraph-LoginReason': 'OK', 'Vary': 'User-Agent', 'X-AREQUESTID': '777x24903741x3', 'X-ASESSIONID': '6dg96h', 'Connection': 'close', 'Cache-Control': 'no-cache, no-store, no-transform', 'Date': 'Mon, 30 May 2016 12:57:34 GMT', 'Server': 'Apache-Coyote/1.1', 'Content-Type': 'application/json;charset=UTF-8'}
response text = {"errorMessages":[],"errors":{"source":"Field 'source' cannot be set. It is not on the appropriate screen, or unknown."}}

代码:

代码语言:javascript
复制
def create(request):
    if 'name'  in request.GET:
            n=request.GET['name']
            options={'server':'http://jira.com'}
            jira=JIRA(options,basic_auth=('username','passwd'))
            root_dict={
            'project':{'key':'TS'},
            'issuetype':{'name':'Issue'},
            'summary':'Test',
            'description':'Test',
            'source':[{'name':'Walk-ups'}],
            'type':{'name':p},
            'region':{'name':'INDIA'},  
            }
            my_issue=jira.create_issue(fields=root_dict)
EN

回答 1

Stack Overflow用户

发布于 2016-05-30 21:16:08

您的配置是否正确?检查这篇文章:https://answers.atlassian.com/questions/265902/answers/19694532

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37526394

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档