Hello everybody,
I am not able to check different values for different conditions for one and the same custom field.
Goal:
On status changes from * to resolved, the CF.GEE must have a value and the value must be ‘erteilt’
On status changes from * to rejected, the CF.GEE must have a value and the value must be ‘verweigert’
Queue: 'PK GEE Acquisition
My config:
Set(%MandatoryOnTransition,
‘PK GEE Akquise’ => {
‘* -> resolved’ => [ ‘CF.GEE’ ],
‘CF.GEE’ => { transition => ‘* -> resolved’, must_be => [‘erteilt’] },
‘* -> rejected’ => [ ‘CF.GEE’ ],
‘CF.GEE’ => { transition => ‘* -> rejected’, must_be => [‘verweigert’] },
},
);
CF.GEE has the Typ ‘Select one value’
Result:
Message when resolving the ticket: GEE is required when changing status to resolved
Message when rejecting the ticket: GEE must be denied when changing status to rejected
==> ‘CF.GEE’ => { transition => ‘* -> resolved’, must_be => [‘erteilt’] }, is ignored!
Is the syntax incorrect? Or can this condition not be implemented with the extension?
By the way, this is what it looks like in the RT config (/Admin/Tools/Configuration.html):
MandatoryOnTransition {
‘PK GEE Akquise’ => {
‘* -> resolved’ => [
‘CF.GEE’
],
‘* -> rejected’ => [
‘CF.GEE’
],
‘CF.GEE’ => {
‘transition’ => ‘* -> rejected’,
‘must_be’ => [
‘verweigert’
]
}
}
}
Tested with:
RT 4.2.16
Debian 8.11
MariaDB 10.1.43
Best,
Patrick