Skip to main content
Participating Frequently
Jan 5, 2022 10:42 PM UTC
Question

Get task from a task URL

Hi Community,

Is there a way to zero in to a task using the task URL..? The task URL looks something like this - /suite/rest/a/task/latest/nyRHm7PRCKoujsVRqz/form and I would like to understand specifically what task it corresponds to.

    9 replies

    stefanhelzle0001
    Brainy
    Jan 6, 2022 8:33 AM UTC

    What do you want to achieve?

    vinayp0002
    Participating Frequently
    Jan 7, 2022 7:52 AM UTC

    Hello [mention:0f2ad761f321420aab4c40b3d720b088:e9ed411860ed4f2ba0265705b8793d05], please use the function Url for task function to achieve this.
    You can use this task link in an email body for users who can directly perform an action on the task by clicking the link in the email itself.

    Hope this would help.

    peter.lewis
    Employee
    Jan 7, 2022 10:05 PM UTC

    I second Stefan's question above - why do you need this?. In general it isn't possible to determine which task ID corresponds to a URL for security reasons, since if a user had a task ID, it's possible they could then use it programatically to try and cancel or reassign the task. You can use the a!urlForTask to go from the ID to the URL, but it isn't possible to do the opposite.

    jean-jacquesz
    Participating Frequently
    Sep 12, 2023 7:37 AM UTC

    Hi,

    It may be useful if you want to monitor the use of a specific task, in order to calibrate automated tests.

    I tried to do so using the tomcat-access.log, but as [mention:0f2ad761f321420aab4c40b3d720b088:e9ed411860ed4f2ba0265705b8793d05] mentionned it, it is not possible by using the URL containing the task ID.

    Is there another way to do so ?

    Best regards,

    Jean-Jacques

    stefanhelzle0001
    Brainy
    Sep 12, 2023 8:02 AM UTC

    I do not understand what "monitor the use of a specific task, in order to calibrate automated tests" is.

    I need to repeat my initial question: What do you want to achieve?