Post

3 followers Follow
0
Avatar

How to get list of Tasks associated with an App Item?

I need to get a list of Tasks associated with an App Item, or ideally a list of App Items.  I need this to determine if a Task has previously been created for this App Item or not.

I'm reading through the API documentation and the closest thing I can find is this, but if this is what I'd use it's completely non-obvious to me how:

Is that the API endpoint I need, and if so may I ask for an example how to use?  And if not, may I ask you please point me in the direction of which is the correct API endpoint to use with an example of how to use it?

Thanks in advance.

Mike Schinkel Answered

Please sign in to leave a comment.

19 comments

0
Avatar

You are correct, Get tasks is the method to use. You'll want to use the reference parameter to indicate the app item(s) you want to find tasks associated with. Here's an example, if you are calling the API directly:

GET https://api.podio.com/task/?reference=item:1234;item:5678

If you use one of our client libraries you will have to use the corresponding method, but the reference syntax is the same.

Bear in mind that you must be authenticated as a user who can view these items and tasks. The Get tasks operation does not support app authentication.

Casper Fabricius 0 votes
Comment actions Permalink
0
Avatar

Hi Casper,

Thanks for the quick answer.  

Can you clarify what you mean about authentication?  My goal is to write a bot and/or web service that will allow me to created what I will be calling "Task-related Apps" with an "Assignee" Contact field, and then whenever one of those Apps is created, updated or deleted to automatically create, updated or delete a Task for the the person listed as Assignee.   Can you tell me if the limits on authentication will allow me to do that?

-Mike

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

There are different ways to authenticate with the Podio API:

https://developers.podio.com/authentication

For bots/webservices we generally recommend using app authentication, as that allows you act "as an app" rather than "on behalf of a user". Only API operations that are directly tied to an app can be used with app authentication. Get tasks cannot be used with app authentication, as tasks are not necessarily tied to an app.

So you'll probably have to create a "dummy user" that is member of the spaces needed, and then go with username/password authentication. It's not something we usually recommend, but if you don't have any user interaction with your app, it can be necessary.

Casper Fabricius 0 votes
Comment actions Permalink
0
Avatar

So this dummy user, it can assign tasks to other users and also get a list of tasks of those users?

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Also, if you don't recommend that, are you planning an improvement to the API to better enable these scenarios?

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

I think you are going about this the wrong way. Do you really need to use tasks? I think it might be better for you to create a "task" app.

Christian Holm 0 votes
Comment actions Permalink
0
Avatar

You can use any user with sufficient access, it could be your own Podio user for that matter. I'd just recommend using a dummy user so it's clear that's an automated thing that happened.

And no, we don't have any plans to add further ways of authenticating.

Casper Fabricius 0 votes
Comment actions Permalink
0
Avatar

Christian, We are creating a Task App, we are actually creating six (6) different Task Apps:

  1. Product Issues
  2. Product Feature Requests
  3. Product Doc Requests
  4. Project Tickets
  5. Product Deliverables
  6. Systems Requests

The problem with this approach is that people who have to do the tasks have to fish around in six different place to find the their task list which is not realistic nor will they actually do it, no matter what we "require" of them. The very purpose of this request was so I can build a WebHook listener and a Bot that can keep those 6 Apps and Task in sync.

BTW, I've long conversations with two other users of Podio and we all agree this is one of the bigger difficulties with using Podio, which is why I'm building a WebHook listener and a Bot to try to address those issues. :)

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Oops, that was supposed to be "Project Deliverables." 

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Hi Casper, 

If a dummy user actually does work for this then it's more than sufficient solution. Thanks!

-Mike

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Hello, were you guys able to make this work? 

I have an app I use as a CRM. I have also created tasks under items within this app and I would like to be able to see these items listed when I go to the items within this app. Does this procedure accomplish this? If so, how were you able to make it work? All help is greatly appreciated!

Vanessa Duran 0 votes
Comment actions Permalink
0
Avatar

Hi @Vanessa Duran,

Yes, using the API the answer posted by @Casper does work. However...

     "I have also created tasks under items within this app and I would

_
     like to be able to see these items listed when I go to the items

     within this app."_

I'm not sure if it does what you are looking for, and did you write your question correctly or did you mean to say:

     "...I would like to be able to see these tasks listed when I go to the items within this app."

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Yes! I wrote it wrong, but you guys are so good you knew exactly what I meant. Sorry. I was working late and already mixing up words.

API working. Interested to see how it will look after I have a tons of tasks assigned to a particular item. And to see how long will completed tasks will stay there. I am particularly interested in keeping a history of what has been done for a particular client (which are the 'items' within this app) and by whom, etc. 

thanks again for your prompt response.

Vanessa Duran 0 votes
Comment actions Permalink
0
Avatar

Hi @Vanessa,

I'm just another Podio user like you.  

Are you wanting to program the API, or are you asking for user functionality?

-Mike

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Thank you, Mike! That's even better!

I was trying to program the API. I 'think' I have it working now as I can see the tasks on the item within the app (my clients). If you have any information/documentation to point me to I'd greatly appreciate it.

Thanks! Vanessa.

Vanessa Duran 0 votes
Comment actions Permalink
0
Avatar

Hi @Vanessa,

@Casper's answer should be what you need, I think.  I not, ask.

-Mike

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Hi @Mike, we have the same issue. Takes are global and a "Task" App is not. 

Use Case:

I want to be able to auto close all podio tasks associated with an app item. 

This can be done manually by a user updating a field in the app item or preferably via a workflow. 

I've read the documentation and it looks quite doable to update the said tasks by first getting a list of tasks associate by the app item and then updating all to closed status. 

No authentication issues for us because the user will have access to the said app item. 

I woild appreciate it if you could share any tricks or code that you feel comfortable with   Thanks! Marc 

 

 

 

 

 

 

Marc Naidu 0 votes
Comment actions Permalink
0
Avatar

Hi @Marc,

FWIW, I gave up on Podio several years ago.

-Mike

Mike Schinkel 0 votes
Comment actions Permalink
0
Avatar

Sorry to hear that @Mike. 

But thanks for the quick response and happy holidays from Sunny Singapore!

-Marc

Marc Naidu 0 votes
Comment actions Permalink