Skip to main content
January 5, 2022
Question

Get task from a task URL

  • January 5, 2022
  • 9 replies
  • 0 views

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
    January 6, 2022

    What do you want to achieve?

    vinayp0002
    January 7, 2022

    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
    January 7, 2022

    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
    September 12, 2023

    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
    September 12, 2023

    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?