LiquidPlanner Classic Forum
adding people to a task using API
*Posted on behalf of Andrew Blum. Original posting date 2018-01-12.*
Greetings,
I'm new to Liquid Planner and this community.
I'm trying to leverage the LiquidPlanner API (https://app.liquidplanner.com/api) to create and manage tasks for my team.
I cannot find a way to "Add People" to an existing task.
I've looked through the this endpoint documentation (https://developer.liquidplanner.com/v1.0/reference#put_workspaces-workspace-id-tasks-id) and couldn't find a way to
I have tried to use the /track_time endpoint with the member_id payload, like this:
```{"member_id":840141,"low":0,"high":0,"is_done":"true"}```
The member_id given in this example is different than the member_id of the person who created the task and the person associated with the access token.
The task is updated as "done" correctly so I know that the request is being received and acted on, but there isn't a new person listed that is associated with member_id in my POST.
Any tips on adding people to an existing task using the API ?
Thanks,
Andrew Blum
CEE Training
Red Hat
Posted by LiquidPlanner Support about 5 years ago
how do I create a task without an assignee?
*Posted on behalf of a customer. Original posting date 2015-01-19.*
I want to create a task without any assignee, is it possible or not ? i have tested with the following script, i am passing assignments as null but its assigning to me as owner because i am administrator, in my opinion it does not make sense, see below at my script.
```
jQuery.ajax({
url :'https://app.liquidplanner.com/api/workspaces/######/tasks';,
type: 'POST',
beforeSend : function(xhr){
xhr.setRequestHeader("Authorization", "Basic " + 'YXXYXYXYXXYXYXYXYXYXYXYXXYXYXYXYXYXYXY}');
},
data: JSON.stringify({
"task": {
"name": "My task",
"parent_id": ########,
"assignments": null
}
}),
dataType: 'json',
contentType:'application/json; charset=utf8',
success: function(data){
console.log(data);
}
})
```
above script is creating the task for me but it is assigning to me as well, that does not make any sense to me. Why does it happening.
Posted by LiquidPlanner Support about 5 years ago
Can't seem to assign multiple owners on an active task
*Posted on behalf a customer. Original posting date 2015-01-14.*
I have an active task but still i can't assign a task to multiple users, my code is following please let me know where i am wrong
```
jQuery.ajax({
url :'https://app.liquidplanner.com/api/workspaces/######/tasks/########;,
type: 'POST',
beforeSend : function(xhr){
xhr.setRequestHeader("Authorization", "Basic " + 'XXXXXXXXXXXXXXXXXXXXXX');
},
```
```
data: JSON.stringify({
"task": {
"name": "My task created in LP First",
"parent_id": ########,
"assignments": [{"person_id":111111},{"person_id":222222}]
}
}),
```
```
dataType: 'json',
contentType:'application/json; charset=utf8',
success: function(data){
console.log(data);
}
})
```
I am working to JIRA to LiquidPlanner integration, i am trying to assign multiple users to a task with the help of following script i am POSTing but i am getting the error 404 NotFound, and if i am using PUT then i am getting 400 BadRequest "You can only set assignments on newly-created items. Use update_assignment."
my script is following.
```
jQuery.ajax({
url :'https://app.liquidplanner.com/api/workspaces/######/tasks/##########';,
type: 'PUT',
beforeSend : function(xhr){
xhr.setRequestHeader("Authorization", "Basic " + 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
},
```
```
data: JSON.stringify({
"task": {
"name": "My task created in LP First",
"parent_id": ########,
"assignments": [{"person_id":111111},{"person_id":222222}]
}
```
```
}),
dataType: 'json',
contentType:'application/json; charset=utf8',
success: function(data){
console.log(data);
}
})
```
how to do update_assignment in existing task, i couldn't find anything about update_assignment in REST api docs.
Posted by LiquidPlanner Support about 5 years ago