How to get list of Tasks associated with an App Item?
AnsweredI 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.
-
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.
-
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
-
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.
-
Christian, We are creating a Task App, we are actually creating six (6) different Task Apps:
- Product Issues
- Product Feature Requests
- Product Doc Requests
- Project Tickets
- Product Deliverables
- 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. :)
-
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!
-
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."
-
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.
-
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
Please sign in to leave a comment.
Comments
19 comments