LiquidPlanner Classic Forum

Ask a Question
Back to All

how do I create a task without an assignee?

(edited)

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.