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

[NEW] Show department field on Livechat visitor panel #13530

Merged
merged 4 commits into from
Mar 4, 2019

Conversation

renatobecker-zz
Copy link

Closes #13371

This PR adds the department field of the current Livechat room on Visitor info painel, like the image below:
screen shot 2019-02-20 at 15 17 42

@renatobecker-zz renatobecker-zz added this to the 0.75.0 milestone Feb 20, 2019
@renatobecker-zz renatobecker-zz added this to In progress in Omnichannel Roadmap via automation Feb 20, 2019
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13530 February 20, 2019 18:35 Inactive
@renatobecker-zz renatobecker-zz moved this from In progress to Needs review in Omnichannel Roadmap Feb 20, 2019
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13530 February 26, 2019 14:38 Inactive
@rodrigok rodrigok merged commit bdde3f8 into develop Mar 4, 2019
Omnichannel Roadmap automation moved this from Needs review to Done Mar 4, 2019
@rodrigok rodrigok deleted the show-livechat-department-visitor-info branch March 4, 2019 14:10
@juliomac
Copy link

Hi @rodrigok ,

How can I get the department information on REST API or, better, on Real-time API?

@renatobecker-zz
Copy link
Author

@juliomac, please take a look at our Livechat Docs:

https://rocket.chat/docs/developer-guides/rest-api/livechat/

@juliomac
Copy link

Dear @renatobecker, thanks for so quick response!

Before finding this merge and you, I did a bit of homework and went looking through all options in rest-api/livechat. There's call for listing departments, there's calls for retrieving department info, but I could not find any call retrieving what is the exact department this particular visitor came from.

Can you give me a light? What is the call that retrieves the department defined by the below function on the target website?

    RocketChat(function() {
     this.setDepartment('FILL HERE DEPARTMENT NAME - case sensitive');
   });

@juliomac
Copy link

juliomac commented Mar 17, 2019

Examples of calls that didn't work for me:

curl http://localhost:4000/api/v1/livechat/room?token=< tokenFromVisitor>
      >>> No department information

curl http://localhost:4000/api/v1/livechat/visitor/<tokenFromVisitor>
      >>> No Room nor department information

@renatobecker-zz
Copy link
Author

@juliomac, I suggest you create a new issue describing your use case, what do you think?
Thanks.

@juliomac
Copy link

Thanks, done it through: #13766

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

Successfully merging this pull request may close these issues.

Livechat Department in Room Info
7 participants