Setting Effort using effortAllocation

Hey folks!

I'm having some issues setting Effort using the API. Per the "tasks" page in the API Documentation, I'm trying to set a task's Effort using effortAllocation in a POST request, but the tasks will not upload if I include it. My JSON for effortAllocation is as follows:

effortAllocation: {
"mode": "Basic",
"allocatedEffort": 90,
"totalEffort": 90
}

I append that to my URI in JavaScript as follows:

encodeURI(`/api/v4/folders/${folder}/tasks?...&effortAllocation=${JSON.stringify(job.effortAllocation)}`)

Also of note:

  • When I don't include effortAllocation, the tasks push into the desired folder just fine
  • I have tried building my JSON object with just "mode" and "allocatedEffort", "mode" and "totalEffort" and, even just with "mode", but none of them have properly loaded
  • Other JSON objects stringify without breaking the request
  • I'm using a Wrike Enterprise Basic account, if that were to effect anything

Any help with this would be immensely appreciated!

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
1 comment
Avatar
Cansu

Hello Jacob Joslyn, welcome to the Community 👋🏻

Our Support team is in touch with you about your question here via email. Please let me know if I can help with anything else 🙋🏻‍♀️

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Setting Effort using effortAllocation
[this list is visible for admins and agents only]

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