[rt-users] Communicate a message to web UI from inside Scrip?

Jeff Blaine jblaine at kickflop.net
Thu Jan 6 17:09:55 EST 2011


On 1/6/2011 4:57 PM, Christian Loos wrote:
> How about put a comment with your script in the ticket.
> The Ticket history would then look like this:
> * Status change from open to resolve
> * Comment: ERROR: Cannot resolve without a value for BlahBlah.
> * Status change from resolved to open

That's exactly what I am trying to do :)

I don't want to do it way down in the history though.  The
user should be notified at the top of the screen where normal
operation status messages go.

>
> I think this would make it clear for the user why they can't resolve the
> ticket.
>
> -Chris
>
> Am 06.01.2011 19:10, schrieb Jeff Blaine:
>> As part of my current solution (ongoing) to the "Don't allow
>> resolve if a certain CF is not set" topic, I am resetting
>> the ticket status back to "open" when I see that someone
>> tried to resolve while the specific CF was not set.
>>
>> Unfortunately, even though my code set the status back to
>> "open", the "BriefMessage" on the transaction still says
>> that the status went from "open to resolved" ... yet the
>> ticket shows properly *as open still*.
>>
>> Is there a way to queue one of these notices to the user
>> from within my Scrip?
>>
>>      ERROR: Cannot resolve without a value for BlahBlah.
>>
>



More information about the rt-users mailing list