Skip to content
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

Some ticket rules are not working when ticket is collected by mail while it works by interface #18368

Open
2 tasks done
SteadEXE opened this issue Nov 21, 2024 · 2 comments
Open
2 tasks done

Comments

@SteadEXE
Copy link
Contributor

SteadEXE commented Nov 21, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.17

Bug description

We got an issue, we got a set of rules to extract ticket category from subject by using a regex.
Then we got a set of rules to assign a technician based on the previously extracted category.
To finish we got a set of rules to assign SLA based on the category and the priority or type of the ticket.

All rules are in "add/update" mode.

When we use the rule tester, all rules are evaluated and we end up with the result we want.
When we create a ticket directly from GLPI it works.

But when a ticket is created by the mailgate some rules are not evaluated.

After troubleshooting it, it looks like the ticket type is not available when creating a ticket from mailgate while evualuating rules the first time.
If we manually set it in the first matching rule it works.

Relevant log output

Page URL

No response

Steps To reproduce

  1. Create a rule to extract category from title with 'add/update'
  2. Create a rule to set SLA based on ticket based on category and ticket type.

If you manually set a type in the rule 1 it works otherwise it doesn't.

Your GLPI setup information

No response

Anything else?

No response

@cedric-anne
Copy link
Member

Hi,

Indeed, the mail collector does not set a type, and IMHO, it should not do it automatically. We could probably propose a new rule dedicated to mail collectors that would permit to define the type of the ticket.

@SteadEXE
Copy link
Contributor Author

Yeah it makes sense, yeah I think it could be great to make both workflows identical, thank you for the quick reply.

By the way, thank you for the fast reply, as usual, you guys rocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants