[NEW] Add default chat closing tags in Omnichannel departments #16859
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CLOSES #16191
The linked issue describes the wrong behavior when closing Omnichannel conversation from users(visitors, system, etc..) other than the agent who is assisting the chat, in conversations associated with a department that requires at least one tag when closing the chat.
Currently, when an agent attempts to close a chat from the web client and the closing process doesn't succeed, they get the following error:
From the agent's side, everything is working as well as expected, but from other sides, such as the
livechat widget
or other processes performed on the server-side, it doesn't, because the room isn't closed properly due to the current tag's validation.So, to fix and improve the flow of closing omnichannel chats, a new(and requested) feature has been added in order to avoid unwanted problems:
conversation closing tags
per department, which will be automatically assigned to the rooms when closing the omnichannel chats:Version with pre-configured Tags(A select component is rendered)
Version with no pre-configured Tags(An input component is rendered)
This new feature is optional when the
Request tag (s) before closing the conversation
is false, otherwise, it is a mandatory configuration and validation has been added to ensure the expected configuration.So now, the system will continue validating the rooms before closing, but only the agent(web client) will get an error if there is no tag in the room associated with departments that require tags before closing.
If the validation succeeds, the room tags set by the agent will be merged with the default
conversation closing tags
of the department(if exists), as shown below: