What's "presence" on a task?
Searching through the API possibilities for tasks I found that https://developers.podio.com/doc/tasks/get-task-22413 returns a so called "presence" with "ref_type", "ref_id", "user_id", "signature". I could not find any information on this. It got my attention because I'm searching for a way to get tasks UserA created assigned to UserB but UserB reassigned it to UserC. So UserC is referenced in "responsible". Using https://developers.podio.com/doc/tasks/get-tasks-77949 always yields the same result no matter of "reassigned" 1 or 0. Using "reassigned" parameter does not help because all these tasks are reassigned as far as I'm concerned, no matter UserB reassigned it. "reassigned" filter returns delegated task I would say and all of these tasks are delegated from the beginning.
I couldn't find a way to find these UserA=>UserB=>UserC tasks because I can not know who UserC is, as it's a manual operation from UserB I can not foresee. So it is needed to seach using user_id of UserA and UserB. I found that in my tests UserB is referenced in "presence" => "user_id" but don't know how to access it of even if this is the right information needed or just a coincidence...
Could someone provide more information on this topic and if it is even possible what I try?
-
Presence is used to display any other user who is "viewing" that task at the time. It's not useful for your purpose (the presence service is not currently expose for third-party usage).
I read your description several times, but I still don't understand what it is you're trying to do...
-
Profile_image_650343246_1544
Oh ok. Thanks for that information.
I try to make it a bit simpler and more precise:
Using an "API-User" I create some tasks for items when a date-field is due. This task is assigned to (for example) my normal Podio account. So "created_by"=>"API-User" and "responsible"=>"Mose". Now let's say it's not me who has some doing on this item but another colleague, so I want to reassign this task to him. Now it's "created_by"=>"API-User" and "responsible"=>"Colleague". Next time my API-User checks if there is a task to create it looks for "this item is due. is there a task created by me with ref_item like XXXX and assigned to mose?" that request returns "no". I search for a query that tells me "yes" and the question needs to be like "is there a task created by me with ref_item like XXXX and assigned to mose or was reassigned by mose?"
I know I could save all the created task ids and such but I wanted to keep it simple without using a database...
And as I can see this particular task in Podio under "delegated tasks" (hope it's called like this? I simply translated from German) of my normal user there must be still a connection saved somewhere in the system...
Please sign in to leave a comment.
Comments
3 comments