Thank you very much for your help! I will definitely take a look at the provided links and the standard platform capabilities.
However, I also need an email for escalations with a specific custom logic. Therefore, I'm not sure if the mail templates alone will solve my problem.
As for the code, I placed it in the user task's code block:
import ch.ivyteam.ivy.model.value.WebLink;
import ch.ivyteam.ivy.workflow.ITask;
ivy.log.info("Task URL: Test vom Task");
ITask myTask = ITask.current();
WebLink startLink = myTask.getStartLink();
String taskUrl = startLink.getAbsolute();
ivy.log.info("Task URL: " + taskUrl);
The issue is that this code only gets triggered after the task has been completed, but I need it to run immediately when the task is created, so I can generate and send the email right away.
And the other problem is the url i get from this Method is not available. I get this response : Request
The task with the identifier '142' does not exist.
I understand that the code block within the user task itself marks the end of the activity, and thus is too late for my purpose. I need a way to execute this logic in the moment the task is created, perhaps in a script task placed directly after the user task creation.