【问题标题】:What JSON do I send when I POST using the JIRA REST API?当我使用 JIRA REST API 发布内容时,我会发送什么 JSON?
【发布时间】:2014-02-08 13:43:25
【问题描述】:

我正在使用 /rest/api/2/screens/{screenId}/tabs/{tabId}/fields 将字段发布到 JIRA 中的选项卡中,但我无法弄清楚我发布的 JSON 的结构应该如何。

我收到这条错误消息,非常难以理解(Google 提供的帮助很少):string(298) "{"errorMessages":["Unrecognized field \"id\" (Class com.atlassian.jira.rest.v2.issue.AddFieldBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5383f8a; line: 1, column: 8] (through reference chain: com.atlassian.jira.rest.v2.issue.AddFieldBean[\"id\"])"]}"

这是我当前发送的 JSON:'{"id":"customfield_11930","name":"1st Review Ready"}';

【问题讨论】:

  • 为了将来参考,包括您的 POST 内容将使人们更容易提供帮助。

标签: json post jira jira-rest-api


【解决方案1】:

我找到了正确的 JSON 结构:{"fieldId":"id"}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-13
    • 2021-12-15
    • 1970-01-01
    • 2011-03-23
    • 2017-12-17
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    相关资源
    最近更新 更多