querying tasks with a certain customfield value

Hi,

I'm wanting to query tasks that have a certain customfield with a certain value. Based on the documentation I'd expect this to work:

curl -g -X GET -H 'Authorization: bearer [redacted]' 'https://www.wrike.com/api/v3/tasks?customField={"id":"IEAAWVOMJUAAH43R","value": "NIC Plugin"}'

 

But instead I get a 400.

<html><body><h1>400 Bad request</h1>

Your browser sent an invalid request.

</body></html>

 

What is wrong?

 

Cheers

 

jamie

 

1
2 comments
Spot On Innovative Approach Stellar Advice
Avatar

Hi Jamie! Seems like your post has fallen through the cracks and I missed to reply in time, sorry for that. Are you still having the issue?

Pavel M Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Pavel M Wrike Team member Become a Wrike expert with Wrike Discover

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

 

Hi Jamie,

actually, I was stuck a moment ago, while by your script in my scenario, it can work :) So I guess it might be a temp problem when you tested.  Maybe it has worked for you now. Anyway, Thank you much!

https://www.wrike.com/api/v3/folders/{{wrike_folder_id}}/tasks?customField={"id":"XXXXX","value":"YYYY"}

btw, when i dig into Wrike API, I found this post. it looks Pavel simply said the post was missed to check, but did not even share any comments on what Jamie described. It is disappointed he might not have tried something with the script. IF the script were not working at my side, how a customer can know if the script is correct or not? 

 

0
Comment actions Permalink

Folllowing List for Post: querying tasks with a certain customfield value
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post