是否可以通过REST API在JIRA 4.4中创建问题?

时间:2012-05-03 12:25:40

标签: jira

我试图了解是否可以通过REST API在JIRA 4.4中创建问题。 我正在启动本地JIRA 4.4服务器,并试图创建问题,通过休息客户端发送json 链接:http:// localhost:9090 / rest / api / 2 / issue / 但它响应下一个数据

Status Code: 404 Not Found
Server: Apache-Coyote/1.1
X-AREQUESTID: 972x1063x1
X-ASESSIONID: 1qhj5t4
X-Seraph-LoginReason: OK
X-AUSERNAME: admin
Content-Type: text/html;charset=utf-8
Content-Length: 1006
Date: Thu, 03 May 2012 12:12:32 GMT

并使用下一个json

{
    "fields": {
       "project":
       { 
          "key": "TEST"
       },
       "summary": "REST ye merry gentlemen.",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "name": "Bug"
       }}}

我按照JIRA doc执行此操作 我很困惑我做错了什么, 也许有人熟悉这个错误?

1 个答案:

答案 0 :(得分:0)

这个问题解决了。发生json有一些语法错误的主要原因。

相关问题