【问题标题】:“Service: Service is required.” - Unable to create jira service desk project issue“服务:需要服务。” - 无法创建 jira 服务台项目问题
【发布时间】:2019-11-20 15:26:58
【问题描述】:

我正在尝试使用 v2 REST API 创建 Jira 服务台项目问题。我正在传递所有必填字段值,但 Jira 抛出错误。

responseStatusCode : 400

{
    "errorMessages": [
        "Service: Service is required."
    ],
    "errors": {}
}

分享以下数据,

为创建服务台事件而发送的数据,

{
  "fields": {
    "project": {
      "key": "GSD"
    },
    "issuetype": {
      "name": "Incident"
    },
    "customfield_10402": "test",
    "customfield_12608": {
      "id": "15300"
    },
    "summary": "Test Ticket Please ignore - Jira Testing",
    "description": "this is description"
  }
}

customfield_10402string 字段,customfield_12608dropdown 字段。

项目详情:

"projectCategory": {
            "self": "https://domain.atlassian.net/rest/api/2/projectCategory/10400",
            "id": "10400",
            "name": "Service Desks",
            "description": "Customer facing service desk containers, sitting behind single support portal site"
        },
        "projectTypeKey": "service_desk",
        "simplified": false,
        "style": "classic",
        "isPrivate": false,
        "properties": {}

【问题讨论】:

    标签: jira jira-rest-api


    【解决方案1】:

    我相信上面的请求结构是用来创建 Jira 问题的。

    您正在寻找的是创建服务台请求。

    Jira Service Desk 创建应如下所示

    {
        "serviceDeskId": "10",
        "requestTypeId": "25",
        "requestFieldValues": {
            "summary": "Request JSD help via REST",
            "description": "I need a new mouse for my Mac"
        },
        "requestParticipants": [
            "john"
        ]
    }
    

    请在此处找到更多信息 JIRA Service Desk REST API Reference

    【讨论】:

      猜你喜欢
      • 2012-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      相关资源
      最近更新 更多