Notify user from scrip about missing field

Hi.

Is there any way to notify user from scrip about missing fields? I’m
looking for something similar to RT’s behaviour if mandatory field’s value
is missing (RT reports an error and doesn’t accept transaction) but to be
triggered from scrip.

Thanks in avance.

Jack Zabolotnyi
Arces Network, LLC

e: jzabolotnyi@arces.net
w: http://www.arces.net

PGP key: 2048R/7F2AB658 2012-07-02
PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658

Jack,

I don’t think RT allows a scrip to send a message to the screen. That would
be a REAL nice enhancement. I got around the problem by triggering an email
to notify the person making the change that the change was NOT accepted and
that the ticket was reverted to the original status.

Hope this helps.

KennOn Fri, Sep 14, 2012 at 10:44 AM, Jack Zabolotnyi jzabolotnyi@arces.netwrote:

Hi.

Is there any way to notify user from scrip about missing fields? I’m
looking for something similar to RT’s behaviour if mandatory field’s value
is missing (RT reports an error and doesn’t accept transaction) but to be
triggered from scrip.

Thanks in avance.


Jack Zabolotnyi
Arces Network, LLC

e: jzabolotnyi@arces.net
w: http://www.arces.net

PGP key: 2048R/7F2AB658 2012-07-02
PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658


Final RT training for 2012 in Atlanta, GA - October 23 & 24
http://bestpractical.com/training

We’re hiring! Careers — Best Practical Solutions

Thank you for your reply. Hovewer, it’s not an option for me to notify
users via email, because it will make a lot of mess: user replies in
ticket, hist reply is not accepted (but is accepted on web-page, and later
deleted), user receives email that his comment was not accepted… I’m sure
this will not make any good for me…

I was trying to deal with this using mandatory fields, but as i found out,
they are not so mandatory: if someone who’s unable to view field creates
ticket, RT accepts it, and this mandatory field has value ‘(no value)’. And
even if someone later updates ticket, rt will accept changes even if value
for such field was not set… This is very sad for me…On Thu, Sep 20, 2012 at 8:20 AM, Kenneth Crocker kenn.crocker@gmail.comwrote:

Jack,

I don’t think RT allows a scrip to send a message to the screen. That
would be a REAL nice enhancement. I got around the problem by triggering an
email to notify the person making the change that the change was NOT
accepted and that the ticket was reverted to the original status.

Hope this helps.

Kenn

On Fri, Sep 14, 2012 at 10:44 AM, Jack Zabolotnyi jzabolotnyi@arces.netwrote:

Hi.

Is there any way to notify user from scrip about missing fields? I’m
looking for something similar to RT’s behaviour if mandatory field’s value
is missing (RT reports an error and doesn’t accept transaction) but to be
triggered from scrip.

Thanks in avance.


Jack Zabolotnyi
Arces Network, LLC

e: jzabolotnyi@arces.net
w: http://www.arces.net

PGP key: 2048R/7F2AB658 2012-07-02
PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658


Final RT training for 2012 in Atlanta, GA - October 23 & 24
http://bestpractical.com/training

We’re hiring! Careers — Best Practical Solutions


Final RT training for 2012 in Atlanta, GA - October 23 & 24
http://bestpractical.com/training

We’re hiring! Careers — Best Practical Solutions

Jack Zabolotnyi
Arces Network, LLC

e: jzabolotnyi@arces.net
w: http://www.arces.net

PGP key: 2048R/7F2AB658 2012-07-02
PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658

Jack,

I was trying to deal with this using mandatory fields, but as i found out,
they are not so
mandatory: if someone who’s unable to view field creates ticket, RT
accepts it,

You should be able to achieve what you want through callbacks. For example
BeforeCreate in Create.html allows you to set $skip_create in order to
prevent a new ticket from being created. If you search the wiki, I think you
will find some examples how to do it.

Best regards,
Maciek