Modify

Opened 13 years ago

Last modified 4 years ago

#8548 new enhancement

[Patch] request ability to use multiple fields in a triage

Reported by: anonymous Owned by:
Priority: lowest Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

it would be extremely nice to be able to use an arbitrary number of fields in a triage. If this is already possible, then it would be extremely nice if it were documented.

Attachments (1)

controller.patch (2.5 KB) - added by anonymous 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by anonymous

Attachment: controller.patch added

comment:1 Changed 13 years ago by anonymous

This patch was my solution to this issue; it allows you to specify the triage_field as "complex_triage" to unlock the ability to use multiple fields with some logic (and and or, but no not and no parentheses), as well as one macro value that I had need of (<<component_owner>>). This could probably benefit from further work (like maybe some hook to allow more macros to be defined without having to edit the source, as well as the capability to parse more difficult logic).

It takes advantage of the fact that the first successful transition is the one that gets used so that you can overload a given triage element by starting with the most specific and working your way to the least.

comment:2 Changed 13 years ago by anonymous

I forgot to mention: this does not break backwards compatibility with existing triage setups; it only activates if you use complex_triage for the field. If you do that, then you need to re-setup your triage transitions. The new format is field:value for testing the value within the given field against the given value. These can be separated by & (for and) and | (for or) to make up a test. If the test evaluates to try, then the triage goes to the given state. tranisition: <logical block>-><new state> logical block: <test>[op][test]... test: <field>:<value> op: & or | new state: any valid state in your workflow - this is the state to go to, if the logical block evaluates to true.

comment:3 Changed 13 years ago by anonymous

Summary: request ability to use multiple fields in a triage[Patch] request ability to use multiple fields in a triage

just adding patch to the title since there is a patch provided.

comment:4 Changed 13 years ago by Eli Carter

Priority: normallowest

While interesting, something about putting that much logic into the triage functionality feels... wrong. I'll leave this ticket open so others can use the patch, but I'm not planning on incorporating it into the plugin.

comment:5 Changed 4 years ago by Ryan J Ollos

Owner: Eli Carter deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.