LiquidPlanner Classic Forum

Ask a Question
Back to All

How to create an assignment with remaining estimate ?

(edited)

Posted on behalf of Thibaud. Original posting date 2015-01-26.

Hi,

When I create a new assignment using the /treeitems/###/update_assignment URL, the low and high remaining efforts aren't taken into account.

Here's an example:
URL: /workspaces/#####/treeitems/######/update_assignment

POST Data:

"person_id": #####, "low_effort_remaining": "4h", "high_effort_remaining": "8h"

I tried with both virtual and non virtual members without success. Also, updating an existing assignment (passing assignment_id) works fine. This forces to make 2 calls for new assignments. Am I missing something?

Regards,

P.S: looking in the forum I found that when creating a task, the estimates for all assignments can be set using the estimate key with low and high attributes, which is really useful but not documented anywhere (that I could find). This actually fixes my issue in the case of new tasks. I recommend updating the API documentation to include this as it is a quick workaround to prevent using multiple requests.

I even found that the documentation for the changes of january 10th expressively states that creating a task and setting estimates is not doable anymore, while I just tested that it works:

Link: https://developer.liquidplanner.com/discuss/5d66b02666da7000500eaa81
Section: Creating a treeitem and estimating it in one request