简体   繁体   English

使用 JIRA REST-API 更新自定义字段

[英]Using JIRA REST-API to update a custom field

I've been trying to set up a new custom webhook in Zapier , that automatically updates a custom field in JIRA , whenever a specific action occurs.我一直在尝试在Zapier中设置一个新的自定义 webhook,它会在发生特定操作时自动更新JIRA中的自定义字段。 I've followed some tutorials on how to do it, but when I sent the PUT request, it didn't work.我已经遵循了一些关于如何做到这一点的教程,但是当我发送 PUT 请求时,它不起作用。 I also tested a bunch in postman, but with similar results.我还在邮递员中测试了一堆,但结果相似。

I used this URL:我使用了这个网址:

https://bitsandbirds.atlassian.net/rest/api/3/issue/CYBIRD-1252

Here is my input:这是我的输入:

{
   "update" : {
       "customfield_10051" : "test"
   }
}

This is what I got back:这是我回来的:

{
    "errorMessages": [
        "Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@498ac517; line: 3, column: 8] (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"
    ]
}

Anyone know where I messed up & how to do it right?任何人都知道我在哪里搞砸了以及如何做对吗?

fyi here is the view in Zapier仅供参考,这是扎皮尔的景色

There should be应该有

{
  "fields": {
    "customfield_10051" : "test"
  }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM