How to search for issues assigned to banned users

What search string can be used to find all non-resolved issues assigned to inactive users?  Web searches give many answers and none of them work.  I can find nothing in YouTrack documentation or in the community.

Gemini AI:  “project:myproject -resolved assignee: Inactive”

Google search:  “project:myproject -resolved assignee: is:banned”

Google search: “project:myproject -resolved assignee in (inactiveUsers())”    (What we used in JIRA)

Issues assigned to banned users are not being worked and need to be reassigned.  Having thousands of users it is impossible to search by individual.

0
1 comment
Official comment

Hi,

I’m Sergey from the YouTrack Team. Thanks for reaching out!

Currently, there isn't a direct option to search for issues based on the assignee's banned status. The YouTrack documentation on search attributes explains how assignee searches work; you can filter the assignee field by individual users or by groups.

Here's a workaround you could use to achieve your goal:

  • Create a group specifically for your banned users.
  • Add the banned users to this newly created group. You can find these users on the Users page by applying the is:banned filter.
  • Once the group is set up, you can find all issues assigned to them using the search query: assignee: <group name> (replace <group name> with the actual name of your group).

Alternatively, if you prefer a programmatic approach, you can retrieve this data using the YouTrack REST API or the Workflow API.

Let me know if you have any more questions!

Please sign in to leave a comment.