How do I return a Result when refusing a transaction so that user know
what they did wrong (in my case, I just check that a customField is not
null is selected Queue)
Condition : OnResolve
Action: User Defined
Stage:Transaction Create.
Only do it for certain queues.
my @queues = (5,6,7,8,9,10);
my $queue_id = $self->TicketObj->Queue;
my $val = grep { /^${queue_id}$/ } @queues;
$RT::Logger->error(“been here”);
I had a similar problem when I set up a CF with certain group
rights. Only thoise in the group could modify it and that was fine. My
problem was that “within” the group, I didn’t want the person who
“owned” the ticket to make the modification. Since the owner “could” be
in the group, I couldn’t keep that person from making the modification.
So what I did was write a scrip that reversed the change if the change
was made by the owner of the ticket. IT’s a bit messy, but I really
didn’t know of any other way to do it. Hope this helps.
Kenn
LBNLOn 3/13/2009 11:58 AM, jul wrote:
Hi,
How do I return a Result when refusing a transaction so that user know
what they did wrong (in my case, I just check that a customField is not
null is selected Queue)
Condition : OnResolve
Action: User Defined
Stage:Transaction Create.
Only do it for certain queues.
my @queues = (5,6,7,8,9,10);
my $queue_id = $self->TicketObj->Queue;
my $val = grep { /^${queue_id}$/ } @queues;
$RT::Logger->error(“been here”);