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

feat(core): Handoff improvements (autoAssignOnWaiting and forceAssignIfNotAvailable) #2231

Merged
merged 3 commits into from
May 4, 2022

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Apr 28, 2022

Description

Added 2 new functions in HandoffBuilder:

  • withForceAssignIfNotAvailable: True by default. Allow to not assign the case (and set it in waiting status) to the selected agent if he is not available.
  • withAutoAssignOnWaiting: False by default. Allow to assign the case automatically to an agent when the case is in the waiting queue.

Context

We want to be able to:

  • Not assign cases to away/busy agents (forceAssignIfNotAvailable)
  • Allow the agents to not assign the cases in waiting queue manually and let the system assign them automatically.

Approach taken / Explain the design

To document / Usage example

  • forceAssignIfNotAvailable: new HandoffBuilder(session).withForceAssignIfNotAvailable(false)
  • autoAssignOnWaiting: new HandoffBuilder(session).withAutoAssignOnWaiting(true)

Testing

The pull request has unit tests.

asastre added 2 commits April 28, 2022 11:57
…e to not assign the case to the agent if it's not available
@asastre asastre requested a review from MarcosCA May 4, 2022 07:25
@asastre asastre merged commit 7d78dc9 into master-lts May 4, 2022
@asastre asastre deleted the core/handoff-improvements branch May 4, 2022 08:18
vanbasten17 pushed a commit that referenced this pull request Mar 23, 2023
…IfNotAvailable) (#2231)

* feat(core): add forceAssignIfNotAvailable in HandoffBuilder to be able to not assign the case to the agent if it's not available

* feat(core): add autoAssignOnWaiting in HandoffBuilder to be able to auto assign a case in waiting to an agent

* feat(core): set true as a default value for forceAssignIfNotAvailable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants