Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sorting people list automatically

Matt July 5, 2016

Is there any way to automatically sort the "PEOPLE" list? Either sorting alphabetically or by last interaction time.

Thanks

5 answers

4 votes
James Phillpotts January 11, 2017

If you're using OSX, you can make this happen by editing HipChat.app/Contents/Resources/chat.html, and adding this line to the start of the orderRooms function (which in version 4.29.0.732 is at line 113966):

rooms = _.sortBy(_.values(rooms), ['name']);
Joe Tustin February 8, 2017

Dude thanks for this! I can't believe this isn't a feature.  I have 0 coding experience and figured out where to paste after a few attempts.  Thanks again! 

Joseph Sirimarco February 21, 2017

FYI, for you Windows users, you can do the same thing in this file:

     <hipchat_installation_root>/localweb/hipchat-client.js

Make the change immediately after these lines:

        key: 'orderRooms',

        value: function orderRooms(rooms) {

 

Pawel Gruszka April 19, 2017

it works! :) However last interaction would be more useful. Any idea if room has sth like last modified time? 

Jenna Click July 18, 2017

How do I access this?? @James Phillpotts @Joe Tustin

HipChat.app/Contents/Resources/chat.html

Where do I enter the following string on Mac?! How can I edit the app?

 

Thanks in advance..

Sergio Pavez August 4, 2017

How  to do the same, but ignorig case?

Gaurav Garg September 15, 2017

Upvote this feature for Atlassian to prioritize this - https://jira.atlassian.com/browse/HCPUB-363

Sammo Gabay February 15, 2018

I made the change on Windows and it really makes the client easier to use.

Jesus Lopez Garcia March 7, 2018

Great!

I have also ordered by pending chats:

  1. var roomsByName = _.sortBy(_.values(rooms), ['name']).reverse();
  2. rooms = _.sortBy(roomsByName, ['unreadCount']).reverse();

Probably can be optimized ;)

This is the room structure (you can use any property for sorting):

    {
        "topic": null,
        "admins": [],
        "participants": {
            "members": [],
            "guests": []
        },
        "files": [],
        "links": [],
        "is_archived": "0",
        "history_fetch_ids": [],
        "show_join_leave_messages": false,
        "guest_mention_regex": null,
        "most_recent_message": null,
        "last_read_message": {
            "mid": "xxxxxxxx-xxxxx-xxxxx-xxxxxx-xxxxxxx",
            "timestamp": 234266089.759309
        },
        "avatar_url": "",
        "roster_size": 0,
        "participants_fully_initialized": true,
        "presence": {
            "show": "unknown",
            "status": "",
            "seconds": "",
            "idleTime": ""
        },
        "unreadCount": 0,
        "unreadCountTemp": 0,
        "unreadMentionCount": 0,
        "unreadMentionJustMeCount": 0,
        "isUpdatingUnreadCount": false,
        "hasMention": false,
        "files_fetched": false,
        "links_fetched": false,
        "jid": "xxxxx@chat.bxxx.xxxxhat.com",
        "type": "chat",
        "id": 546456,
        "name": "xxxxxxxx"
    },

1 vote
sui77 February 20, 2017

Please upvote this feature request: https://jira.atlassian.com/browse/HCPUB-363

1 vote
crivers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2016

There's no way to automatically sort the list of people on the left side currently, but we are consistently looking into options to better organize the list of chats (particularly for people who keep a lot of tabs open). It's possible that alphabetical and last-active sort will be an option in the future

John Kennedy August 8, 2016

The only way I keep people organized at the moment is to clear out everyone in my "people" tray each week. Is there a better way to keep track of recent conversations?

crivers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2016

One option I've seen a number of people use is to always close 1-1 chats after you're done with any given conversation (or even after you send any message). We are working on providing persistent tracking for unread messages between sessions as well, which will hopefully help tracking recent updates.

Jessica Bartlett December 5, 2016

Still no way to do this alphabetically?

Scott Wilson January 31, 2017

Very useful feature -please add. 

Gaurav Garg September 15, 2017
0 votes
Deleted user July 19, 2018

Solution: Convince your company to use Slack.

0 votes
abc-jiraadmin July 5, 2016

Thanks Chris. Working in an team with over 500 people it's a huge pain to keep the list organised.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events