One of the ways to overcome this is to close that task and open another task that is connected to the appropriate workflow. The problem with doing this is that unless the person creating the second task is also the person who created the first one, the Submitter of second task will be different to the person who submitted the first one.
What I am therefore wondering is whether it is possible to create a mechanism that allows someone to submit a task on behalf of someone else. Given that the submitter of a task is so useful within TS, being able to set the "real" submitter would be very useful.
The mechanism I have tried goes like this:
1) I have a UDF field "Original submitter" that is populated with the user login of the person who created the first task.
2) I then have create a Create Task/BEFORE Trigger:
- Code: Select all
String value = task.getUdfValue("Original submitter");
if (value!=null){
task.setSubmitter(value);
}
return task;
but this doesn't seem to work. I have also tried an AFTER trigger.
Is my trigger wrong or is changing the Submitter in this way not possible?
