Taskrouter expressions need the ability to invert conditions

Taskrouter expressions are a great concept that allow more dynamic routing not constrained to a traditional hierarchy, while also reducing the need for infrastructure. The idea is great: set up your routing rules and filters, and you're up and running.
The implementation however, omits features severely limiting its usefulness.
Inverting conditions
Example scenario:
I have a number of workers. Those from department A have @example.com
emails, but those from department B use misc domains without any standard convention.
I can easily make a queue for department A like so:
email CONTAINS 'example.com'
However, making a queue for department B workers is currently impossible, as there's no way to invert the rule. These examples do NOT work:
NOT (email CONTAINS 'example.com') !(email CONTAINS 'example.com') email NOT CONTAINS 'example.com'
Thoughts
I feel like the omission of an invert operator is a gross oversight.
Is there any rhyme or reason over this omission? Would you agree Twilio needs to add this feature?
Comments
-
Hi @aaron_cl, I have sent your message to our Taskrouter support team in hopes that they can give you some feedback. Thank you for voicing your concern!
-
Hi Aaron,
This is known and
NOT CONTAINS
isn't supported at this moment. We do have a feature request in our internal tracker. However, I don't have any concrete ETA when this will be available.Have a great rest of your day!
-
@ssengupta thank you for your response. You may consider implementing a generic invert operator that can be used beyond a specific
NOT CONTAINS
.In any case, I'd love it if you could keep the community in the loop. Keep up the good work.
-
Hi @aaron_cl, Most of our changelog usually post here: https://www.twilio.com/changelog
Categories
- 83 All Categories
- 19 SIGNAL 2021
- 376 Product Discussions
- 7 Community - Announcements
- 2 Changelog
- 4 Forum UI Updates
- 8 Welcome Guide
- 6 Community - Events
- 2 Twilio Relay Developer Conference 2021 Mega Thread
- 1 External Community Events
- 25 Inspiration
- 17 Community - Other Discussions
- 1 Community- Twilio Startups