Trying to update field via API but no change on ticket



2021년 2월 24일에 게시됨

Hello,

I'm trying to update some ticket fields via API, but getting a non-error failure. Can someone please suggest what I should try to unblock this? Below is my request:

Note - I've also tried this with the following syntax, but with the same outcome:

{ "ticket": { "name": "Feature Request" } }

And this is the job_status output I get:


0

1

댓글 1개

Hi Borys! The reason that this is happening is because the object for custom ticket fields is different than how you are sending this in. You need to use the `custom_fields` attribute, and then pass that in an array of objects, even if it is just a single field that you are updating. Take a look at this article for the specifics around this.

Additionally, since you are using a bulk update method, you are launching a job that will either successfully complete or fail as a whole. As such, you won't receive the specific error response that you would get when individually trying to update this. If you made this update using the Update Ticket API, you should receive a 422.

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물