2

How to assign artist to Task ?

I can update start date ,due date and status of task but i dont know how to update assign artist to task.....

 

result = sg.update('Task', 5730, {"sg_status_list":"ip",'start_date': '2017-09-13','due_date': '2017-09-15','assign':'artist1'}) 

 

ERROR

Fault: API update() Task.assign doesn't exist:

4件のコメント

  • Avatar
    Matt Welker 正式なコメント

    Hi Sachin,

    I believe the Field you want is: 'task_assignees'

    If you right-click on the Task header and select Configure Field, you'll see this at the top of the dialog:

    Field code: task_assignees

    Let me know if that works for you.

    Thanks,

    Matt

  • 0
    Avatar
    Sachin dubey

    Thank you Matt for your response...now i am getting another error 

    code

    result = sg.update('Task', 5730, {"sg_status_list":"ip",'start_date': '2017-09-16','due_date': '2017-09-19','task_assignees':'artist1'})

    Error

    Fault: API update() Task.task_assignees expected [Array] data type(s) but got String:"artist1"

  • 1
    Avatar
    Matt Welker

    Hey Sachin,

    Task_assignees is a multi-entity Field, so it takes a list [] ('Array' in the error message).

    An example would look like this:

    result = sg.update('Task', 5730, {'task_assignees':[{'type':'HumanUser', 'id':24}]})

    Hope that helps,

    Matt

     

  • 0
    Avatar
    Sachin dubey

    Thank you very much Matt You solved my problem

ログインしてコメントを残してください。