fix(ticket): auto-assign tech with ITIL category launch rule
- [x] I have read the CONTRIBUTING document.
- [x] I have performed a self-review of my code.
- [x] I have added tests that prove my fix is effective or that my feature works.
- [ ] This change requires a documentation update.
Description
- It fixes !37648
- If a technician group or technician is assigned to a ticket via the category, the rules that target this field are not executed, as the rules are executed before the actor field is set by the category.
Screenshots (if appropriate):
Rule:
ITILCategory:
seems good for me, can you add test ?
It's good for customer
@MyvTsv can fix lint
@orthagh I tried the problem again on my side and this is what happened:
I assign a responsible group to a category and create a ticket rule with the group as a trigger that assigns that same group as an observer.
I create a ticket manually without using formcreator, I assign the category to the ticket and the group assigned to the category is assigned as technician. However, this same group is not the ticket's observer, which should be the case according to the rule.
If I create the same ticket, but manually assign the technician group without using the automatic assignment via the category, the rule is activated correctly, and the group also becomes the ticket observer.
What should we do with this PR ?
I consider that the solution is too dangerous. The PR status did not changed in the last 2 months, so I consider it stale and close it. Feel free to reopen it if you consider it important.