Get Custom Fields Value in task Json

The following is the problem I have

{

“gid”: “XXXXXX”,

“custom_fields”: [

{

“gid”: “XXXXXX”,

“name”: “Priority”,

“display_value”: null

},

{

“gid”: “XXXXX”,

“name”: “Group”,

“display_value”: “TBD”

}

],

“due_at”: null,

“due_on”: “2021-05-15”,

“name”: “Add matter number for this and clear conflicts”

}

Here is Json I have, Is there a way that I can get it in the below format directly from API?

{

“gid”:XXXX,

“Priority”:“null”

}

Basically, instead of having it inside the “custom_fields” array, I want it outside of it. Is it possible?

No, there’s no other response format available than the one you’re receiving. If you need it in a different format, you’ll have to do that on your end.

1 Like