How to create a new condition through the web gui

Hi!

I’m wondering how to create a new condition, spesifically I want to set
up a new condition OnCreateFromEmail, as specified here:
http://requesttracker.wikia.com/wiki/OnCreateFromEmail . I found the
instructions here:
http://requesttracker.wikia.com/wiki/WriteCustomCondition , but that
doesn’t mention how to actually add the scrip. So my question is
basically how I add the new condition?

  • Marius

You input custom conditions in while creating or editing Scrips. “Custom
condition” is one of the text boxes you are presented and the Scrip will
use the code in that box if you select User Defined from the drop-down
instead of one of the pre-written conditions provided by bestpractical.

Screenshot attached.On 17 December 2013 06:56, Marius Flage marius@ksat.no wrote:

Hi!

I’m wondering how to create a new condition, spesifically I want to set
up a new condition OnCreateFromEmail, as specified here:
http://requesttracker.wikia.com/wiki/OnCreateFromEmail . I found the
instructions here:
http://requesttracker.wikia.com/wiki/WriteCustomCondition , but that
doesn’t mention how to actually add the scrip. So my question is
basically how I add the new condition?

  • Marius

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

I’m wondering how to create a new condition, spesifically I want to set
up a new condition OnCreateFromEmail, as specified here:
http://requesttracker.wikia.com/wiki/OnCreateFromEmail . I found the
instructions here:
http://requesttracker.wikia.com/wiki/WriteCustomCondition , but that
doesn’t mention how to actually add the scrip. So my question is
basically how I add the new condition?

You may find it easier to use the new extension we blogged about,
instead of User Defined scrips/actions

-kevin

You may find it easier to use the new extension we blogged about,
instead of User Defined scrips/actions

New Web UI for RT Actions and Conditions — Best Practical Solutions

Ooooh shiny. I’m going to add this soon. Thanks Kevin!

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

Den 17.12.2013 20:19, skrev Kevin Falcone:

You may find it easier to use the new extension we blogged about,
instead of User Defined scrips/actions

New Web UI for RT Actions and Conditions — Best Practical Solutions

-kevin

Hi!

This extension looks very nice and shiny and I just added it to my RT,
but I still have no idea how to use it :slight_smile: And especially not for my
example. The example I found uses raw perl code that returns 0/1
depending on some variables, but recreating this using just the five
text input fields provided by the extension seems impossible… ?

What should I enter for “Condition Module”, “Parameters to Pass” and
“Applicable Transaction Types”? The Perl snippet seems to first check
TransactionObj if the transaction type is “Create”, if not it’ll return
0. Then it will check if it’s the first transaction and finally it’ll
check for a header “Received”. Replicating this in 5 text input fields
seems impossible :slight_smile:

  • Marius

Den 17.12.2013 20:19, skrev Kevin Falcone:

You may find it easier to use the new extension we blogged about,
instead of User Defined scrips/actions

New Web UI for RT Actions and Conditions — Best Practical Solutions

This extension looks very nice and shiny and I just added it to my
RT, but I still have no idea how to use it :slight_smile: And especially not for
my example. The example I found uses raw perl code that returns 0/1
depending on some variables, but recreating this using just the five
text input fields provided by the extension seems impossible… ?

If you wish to be able to copy/paste the code you found, you’ll use a
User Defined condition as explained by someone else in this thread.

If you want to use this extension, you’ll need to review the blog post
and the documentation of the extension.

-kevin