That is possible and will be part of the next version
By Thomas Schulte 2 decades ago
To do this right now you have to change some code in the save Action of the ticket
Add this Code at the end of the formula:
REM {Send Mail to the Supporter};
LookUpValue:="MAILIFTODONEWDOC";
MAILIFNEWDOC:=@Eval(F_GETPARAMETER);
LookUpValue:="LINKONTODONEWDOC";
LINKONTODONEWDOC:=@Eval(F_GETPARAMETER);
LookUpValue:="NOTODONOTIFICATION";
NOTODONOTIFICATION:=@Eval(F_GETPARAMETER);
IsNotesUser:=
@If(@IsNull(@Unique(@NameLookup ( [Exhaustive]; supporter; "FullName")));"0";"1");
key := "msgTodoAssigned";
val:=@Eval(F_GETSTRING);
MessageStringExploded := @Explode(val;"");
@If(@Elements(MessageStringExploded) = 0; @Return(0); "");
n := 1;
@DoWhile(
Stringconcat:=stringconcat + @If(
@Left (MessageStringexploded[n];1)="&";
@GetField(@Middle(MessageStringExploded[n];1;@Length(MessageStringExploded[n])));
MessageStringexploded[n]);
n := n + 1;
n <= @Elements(MessageStringExploded)
);
key := "msgTodoClick";
prelinktext :=@Eval(F_GETSTRING);
@If(
NOTODONOTIFICATION="YES" | IsNotesUser="0";
"";
@If(
@IsNewDoc & MAILIFNEWDOC="YES" ;
@If( LINKONTODONEWDOC="YES";@MailSend(supporter;"";"";Stringconcat ; @NewLine + prelinktext + " " ; "";[IncludeDoclink]);@MailSend(supporter;"";"";Stringconcat ; " " ; ""));
""))
You also have to add some Key and Language Elements to make this work:
New Keys:
MAILIFTODONEWDOC should be set to YES
LINKONTODONEWDOC could either be YES or NO. That depends wether you want to send Links or not
Old Keys:
NOTODONOTIFICATION should be set to NO
New Language Elements for TODO ACTIONS & STRINGS
msgTodoAssigned=Die Aufgabe &todoheader für den Call &reqnumber~~ wurde für Sie eingetragen.
msgTodoClick=Klicken sie auf den Link um das Todo zu öffnen ->
If you add this the function you want to have should work.
Thomas