clonemeagain / osticket-slack

a Slack plugin for osTicket
MIT License
47 stars 34 forks source link

Request: Filter by department #13

Open gibbypip opened 6 years ago

gibbypip commented 6 years ago

If there a way to have this only report a specific department to a specific slack channel? We have multiple groups that need some level of segregation to different channels and this would be immensely helpful.

Heck, even pointing in the right direction so I can hack it together myself would be amazing.

clonemeagain commented 6 years ago

Hiya, it's a nice idea, I've looked into it before, and it seems from the slack end there needs to be an endpoint per department, which is annoying. Would have thought you could direct a message to a channel or user, but apparently not.

Then we'd need to add a department selector/endpoint match to the config and change the main class to use that pair. It's not terribly complicated to implement, just takes a bit of time.

gibbypip commented 6 years ago

I would be happy with an endpoint per department, honestly. We name our webhooks/bots per department anyway.

I was trying to figure out where to even just specify a specific department, even in the main class, would go without any luck, although my investigation was pretty limited.

Davidian9 commented 6 years ago

Just added a second department to my osTicket instance and this was the first thing I looked for :) If you ever get around to this, that would be fantastic!

noname729 commented 6 years ago

@clonemeagain would be great if this can be done. We have some confidential data and therefore, it is not ideal to be seen by other depts.

It would be awesome if you can notify me once it's done. Many thanks!

corbinday commented 5 years ago

Any news on this?

clonemeagain commented 5 years ago

Hi, no news yet, under the pump at the moment and haven't got a dev environment configured to work on this.