Hi there, I’m trying to grab a unique identifier for a task so I can use it in a shortcut on iOS. I have spent a couple days messing around without success and read through anything relevant I can find in this forum.
I know I can copy a link to the task with the ID to the clipboard from inside GoodTask, but I can’t figure out how to achieve the same thing through a shortcut.
My first idea was to use a shortcut from the share sheet in GoodTask. If I use the GetTask action in a shortcut, I can get the task name and then use the name to get the identifier, but if there are other tasks with the same name this breaks. There doesn’t seem to be a way to pass an ID directly from the share sheet to the shortcut.
It seems a url with x-callback could do this, but I have not had success with my initial tests.If I run
goodtask3://x-callback-url/currenttask?
Shortcuts throws an error that “currenttask is not a x-callback-action supported by GoodTask”
Can someone point me in the right direction to achieve this?
Thanks!!!
Hi @Montgomery_cantsin , thanks for the feedback.
You an use Get Task and then add 'Get Variable' action, choose 'Task', tap 'Task' and check 'Task Identifier' and it should be done.
Thanks!
Thanks for the response! I don’t have an issue getting the task identifier. However, running GetTask in a shortcut seems to either return all existing tasks or require that I search by title. There is no easy way to filter what is being returned say by date to overcome this limitation. How can I make the initial GetTask action specifically target the task I am sharing from the share sheet so I can avoid errors when there are more than one task with the same title? Appreciate the help.
Yes, you’re right. GetTask action can only get tasks by title and filters completed, has subtasks and tags.
Currently there is no direct way to get uuid from share sheet within GoodTask.
Would you let me know what you’re trying to achieve when you get the uuid?
Thanks!
Hi there, I want to make a shortcut to create a note in the native Notes app with a link back to the task in GoodTask. The current function when you share to Notes in GoodTask creates a new note with the task as the heading with a functionless large circle and then the list name under it.
Is there no longer support for x-callback and the currenttask action that is mentioned in other threads on this forum? I can get GoodTask to perform some other actions through url scheme (like adding a new task) but it makes no response to the calling app when the action is complete.
Thanks!
OK. I understand.
URL Scheme of currentTask action is currently only available on Mac version since it gives the link for currently opened task.
I'll check if it can be done on iOS on later updates. Thanks!
Thanks for your help. I will figure out a work around for now. Hope it can be implemented on iOS!
Cheers!