New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix auto assign played after rules in tickets #17088
Fix auto assign played after rules in tickets #17088
Conversation
Existing tests are broken. Also, I'm not sure this kind of issue really can be handled right now; it should cause other issues to change the order of execution :( |
4901a70
to
7ddcb44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a piece of code that is supposed to handle this case:
Lines 206 to 210 in fae0c07
// Special case of status | |
if ($action->fields["field"] === 'status') { | |
// Add a flag to remember that status was forced by rule | |
$output['_do_not_compute_status'] = true; | |
} |
Could you check why it does not work ?
Indeed this case was already treated and it works, the problem still lies in what is mentioned in this ticket: !32835 |
Finally, the first concern is that the rule is not executed at all, because one of the criteria required for this rule is not registered until after the rule has been attempted to be executed. As a result, the '_do_not_compute_status' is never set, and the status lock doesn't work. |
Same comment as in #16885. We have to deal with current rules engine limitations. |
When the ticket is created, the group assignments are correct, but the rule assigning a status to the ticket doesn't work.
This is due to the fact that the rule is launched before the automatic assignment in the ticket addition procedure.