Scrip questions

A couple of questions about scrips:

  • is it possible to write a scrip with a ‘user-defined’ action that sends
    mail? I’d like to write a scrip that autoreplies to requestors and also
    updates a custom field on the ticket.
  • is the order in which scrips execute predictable? So if I want scrip G to
    be dependent on something that scrip F does, can I ensure that G will
    always execute after F?

Thanks,Steve

Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IS&T)

sturner@mit.edu

Stephen Turner wrote:

A couple of questions about scrips:

  • is it possible to write a scrip with a ‘user-defined’ action that
    sends mail? I’d like to write a scrip that autoreplies to requestors and
    also updates a custom field on the ticket.

Hm. not trivially. But. as a horrible, horrible hack, you can stick code
to do it in the html template that’s being sent.

  • is the order in which scrips execute predictable? So if I want scrip G
    to be dependent on something that scrip F does, can I ensure that G will
    always execute after F?

Not currently. That will be true after the planned scrips rewrite.

signature.asc (189 Bytes)