Skip to content

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

Merged
rodrigok merged 4 commits intodevelopfrom
show-livechat-department-visitor-info
Mar 4, 2019
Merged

[NEW] Show department field on Livechat visitor panel#13530
rodrigok merged 4 commits intodevelopfrom
show-livechat-department-visitor-info

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
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-13530 February 20, 2019 18:35 Inactive
@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
@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

None yet

Development

Successfully merging this pull request may close these issues.

Livechat Department in Room Info

7 participants

Comments