Tasks API not returning all custom fields?
When I make a call to get information on a task it is returning an incomplete list of custom fields. If I look at the task in Wrike there are 18 custom fields and I see all the proper ones. However, when I look at the returned JSON after making the call, I'm only seeing eight. I'm curious why this is.
In the image below are two custom fields. Both show up when I look at a task in Wrike. But when I do an API call to a specific task via: https://www.wrike.com/api/v4/tasks/########### only the info for Attachments shows up.
Any ideas why?
Hi Roger Asbury, I've raised a ticket for you and I see that my colleagues are in touch with you already🙋🏻♀️
In case others are interested in this:
If a value has not been set for a particular custom field, it will not show up in an API query for the task.
I was confused because a query that should show the result of two checkboxes was only showing one of them. The one that did show up was set to False, or unchecked. Since the other was unchecked, I thought it should have shown up as False as well. Turns out we were programmatically setting the first one to False, but not doing anything with the other. So despite both being unchecked, only one showed up in the query. I have now set up the program to make sure values are explicitly set for both.
Thanks a lot for sharing Roger Asbury 🙌
Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa Wrike Team member Become a Wrike expert with Wrike Discover
Thanks for posting this info Roger Asbury !
Hi, I stumbled upon this because I am having the same issue, however the custom fields that are not returning, do have values associated to them. I cannot figure out why the value is not coming back consistently. Some of the tasks that have the value filled, do come back with the field/value in the response, while others do not and I can't figure out why. :(
Hi Zach Moss, welcome to the Community 🙂 Looks like your question is solved now!
Please let me know if there's anything else I can help you with 🙌
Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa Wrike Team member Become a Wrike expert with Wrike Discover