Hi,
I'm trying to set default Subject of an article in my process. When agent submits some process action with article, I want to set the Subject field of this article. Exactly the same way as it is in "Priority change" window (The article Subject is set to "Priority Update!").
Regards,
Kuba
Article default Subject
Moderator: crythias
Re: Article default Subject
Hi,
I have found valid (at least for me) workaround. I use article long description as a default value for article subject.
I have edited /Kernel/Modules/AgentTicketProcess.pm (Line 926)
Original:
My workaround:
Regards,
Kuba
I have found valid (at least for me) workaround. I use article long description as a default value for article subject.
I have edited /Kernel/Modules/AgentTicketProcess.pm (Line 926)
Original:
Code: Select all
$GetParam{Subject} = $Self->{ParamObject}->GetParam( Param => 'Subject' );
Code: Select all
#Article default subject support (Article Description Long from ProcessManagement field configuration)
my $DV_Subject = $ActivityDialog->{Fields}{$CurrentField}{DescriptionLong};
#If we have default value for article(subject) and Actual value does not exist.
if ( $DV_Subject && (!$Self->{ParamObject}->GetParam( Param => 'Subject')) ) {
$GetParam{Subject} = $DV_Subject;
}
#If Actual value exists.
else
{
$GetParam{Subject} = $Self->{ParamObject}->GetParam( Param => 'Subject' );
}
Kuba