+14
Qualified

Enhance Task Pagehook Button

Mark Parker 7 months ago in Integrations / Connectors updated by Tarun Chawla 2 months ago 2

When a pagehook button is created in the Task Inbox, and set to "configure by task" for the display mode, you are then able to add this pagehook button to a review task, or a non review task. The problem is, when you click this pagehook button, we are able to send the task ID in the URL to the new page, but we are not able to send if it's a review task or a non review task. This is an issue because there are separate routes for review and non-review tasks. If you hit the wrong one, it will return a 404. So our only option right now, is to try one, and if we get a 404, then try the other. This is not ideal or efficient when trying to load a page. See the two different routes below. We need to be able to determine if the pagehook button is being clicked from a review task, or a non review task.

api/tasks/{taskID}

api/review-tasks/{taskID}