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

Tickets created with KnowledgeBase do not appear in unassigned list if teams are not enabled #1073

Open
majikman111 opened this issue Mar 14, 2023 · 8 comments
Labels
bug Something isn't working or is broken

Comments

@majikman111
Copy link

majikman111 commented Mar 14, 2023

Describe the bug
When teams are disabled or not configured, tickets created via KnowledgeBase entries do not appear in the dashboard unassigned list. This causes such tickets to not be readily visible to staff users and are easily overlooked or missed entirely.

This is likely because of the filter located here:
https://github.com/django-helpdesk/django-helpdesk/blob/main/helpdesk/views/staff.py#L151

To Reproduce
Steps to reproduce the behavior:

  1. Start a Django-Helpdesk app with KB enabled but no teams configured.
  2. Create a new ticket from a KnowledgeBase item without assigning an owner.
  3. Browse to the staff dashboard.
  4. Scroll down to the unassigned tickets list.
  5. See that the ticket is not listed as an unassigned ticket.

Expected behavior
The ticket should be listed in the unassigned tickets list.

@majikman111 majikman111 added the bug Something isn't working or is broken label Mar 14, 2023
@timthelion
Copy link
Collaborator

This is intentional. They appear under the KB items. They ARE assigned to the KB items. That is the whole point of having the functionality to create a ticket associated with a KB item.

@majikman111
Copy link
Author

That is incredibly confusing, especially because the ticket is still marked unassigned and the only way to find it is by searching through the all tickets view. What is the intended way of taking tickets submitted via the customer facing KB?

@timthelion
Copy link
Collaborator

With teams where each team can be assigned a set of KB items to deal with: https://django-helpdesk.readthedocs.io/en/0.3/teams.html

Probably if no teams are assigned to the kb items than they should be visible globally.

@timthelion
Copy link
Collaborator

image

You set the team that the KB item is assigned to in the admin page used to edit the KB item.

@timthelion
Copy link
Collaborator

If you are in a team that the KB item is assigned to, you will see the tickets associated with that KB item on the dashboard:

image

@majikman111
Copy link
Author

Ah, that makes sense. Our instance doesn't have any teams configured. I'll update the root issue to clarify that edge case.

@majikman111 majikman111 changed the title Tickets created with KnowledgeBase do not appear in unassigned list Tickets created with KnowledgeBase do not appear in unassigned list if teams are not enabled Mar 14, 2023
@uhurusurfa
Copy link
Collaborator

@majikman111 I see your point. Whilst the ticket is "assigned", a KB assignment is really only meaninglful when using the teams plugin and you assign 1 or more humans to KB. If you have the inclination, make the filter sensitive to whether teams are active or not.

@buoncri
Copy link

buoncri commented Nov 7, 2023

In this case, for a single "helpdesk team", to see in the dashboard all tickets added with a KBItem i am using this in settings.py

class AllUsers():
    name = "C.B.U. Helpdesk Team"

    def is_member(self):
        return True    

HELPDESK_KBITEM_TEAM_GETTER = lambda _: AllUsers # "operatori_team()"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or is broken
Projects
None yet
Development

No branches or pull requests

4 participants