Hi,
this could be achivied using spel, you'll need:
1) to create an event and action macro to switch ticket to resolved status, out-of-the-box Set Status = Resolved fits well;
2) mod file:
MODIFY cr POST_CI z_cr_aeur_status(persistent_id, status) 192 FILTER ( (status {->'AEUR'}) || (status {'AEUR'->}) );
3) spl file:
use this doc SPEL EVENT methods to attach/cancel events;
code part:
cr::z_cr_aeur_status(...) {
string old_value, new_value, persid;
persid = (string)argv[3];
old_value = (string)argv[5];
new_value = (string)argv[6];
if ( (new_value == 'AEUR') && (old_value != 'AEUR') ) {
} else if ( (new_value != 'AEUR') && (old_value == 'AEUR') ) {
}
}
Additional:
- I moved macro to POST_CI to prevent user waiting event creation/cancellation;
- I recommend to register own functions to ease frequent actions like attaching/cancelling events;
Regards,
cdtj