Command to Set all to unassigned

I'm trying to create a command that will change the Assignee to be unassigned then assign them to one user.

I can't find any documentation for this.

I've tried:

remove assignee add assignee <user>
add assignee unassigned add assignee <user>

I have no idea what I'm supposed to do.

Any suggestions?
0
14 comments
Hello Rico,

If I'm not mistaken with my assumption, you would like to change Assignees for several issues.
For that, please select needed issues on issues list (or just select all of them with Cmd + A/Ctrl + A), and start typing command
Assignee Unassigned

Command window will be launched -> click on Apply button.
After that, you will be able to set Assignee to any user in same manner.

BTW, you don'n need to set Assignee to Unassigned first, and then Assign issue to another user.
You can execute this in one command while issue is already assigned to some user
Assignee <username>



Thank you.
0
Thank you for the reply.  Sadly neither of these solve my problem.

Assignee Unassigned

Yields: Can't submit incorrect command.

Assignee <username>

Only adds the user to the list of already assigned users.  I need to remove all assigned users and add a single user.
0
Rico,

Now it's clear that you have multiple Assignee.
Could you please check what is your 'Empty Value' for Assignee field? Navigate to Administration-> Projects-> your project-> Fields tab-> Assignee, Empty Value column.
I assume it's not 'Unassigned'. Please, use the following command with the value of your Assignee field 'Empty Value':
Assignee <Empty Value>
  

If you have not got admin permissions, then you can know this 'Empty Value' from the Command Window. Start typing 'Assignee'-> click Tab-> look at the drop-down list of 'Assignee' field values. Value whith description 'undefined Assignee in <project name>' is your 'Empty Value'.


Thank you.
0
I actually don't have admin permissions, but I spoke with our admin and he has verified that we have an empty value of "Unassigned" for the assignee field in all of our projects.

This continues to fail:

Assignee Unassigned


I've looked at the available options and I do not see "Unassigned" in the list of users.
0
Rico,

Please, check that you have 'Update issue' permission.
Is 'Assignee' command recognized in Command Window when you select issues reported by other users? Or is it underlined in red?
0
I can successfully add assignees...I just can't remove all.

add Assignee rico

Works great.

remove Assignee rico

Works great.

Assignee Unassigned

Fails.
0
You can remove all assignees with the command
remove Assignee <username1> <usernameN>

Please try this variant for one issue first.

Speaking of setting 'Unassigned' value, clarify please, are you able to set Unassigned value manually in Assignee field?
Please, attach a screenshot of Command Window with drop down listing of values, when you type 'Assignee' command.
Also, are other users allowed to set Unassigned value with command?

Are there any custom Workflows attached to your project?

Thank you.
0
I can manually type in the names of each assignee to remove them.  That is not a solution.  I have 100s of tickets that need updating and the assignee list varies from unassigned to multiple varied users assigned.  I need a way to mass unassign all.

Nobody here (even our admin) is able to use the following command with success.

Assignee Unassigned

The list of users available for the Assignee command seems to vary.  The attached picture shows a small segment of potential assignees.  What is the mechanism behind populating that drop-down?

snapshot.png
0
Rico,

Yes, you are right, that's not a solution, but I've described you a way that works while intelligent solution is not fixed.
Drop-down list of assignees depends on list of users who were added as assignees for the project.

Please, clarify several points, from my previous reply:
Are there any custom workflows attached to projects?
Are you able to change value to Unassigned by simple clicking on Assignee field?

Thank you.
0
To unassign using the 'click' method we simply remove all assignees and apply.  This sets it to 'Unassigned'.

We have 5 active workflows across many projects.

jetbrains-youtrack-assigneeVisibilityGroup    32 projects
jetbrains-youtrack-duplicates    30 projects
jetbrains-youtrack-subsystemAssignee    14 projects
jetbrains-youtrack-subtasks    32 projects
jetbrains-youtrack-updateFixBuild    25 projects
0
Rico,

Please, try to apply
Assignee Unassigned

for the issues only from one project. To make it easier, choose a particular project as a context, select several issues (or all) and apply the command. Then execute this for issues from another project. I assume that you select issues from several projects at a time and try to execute a command.

Thank you for your patience.
0
Yes.  That was the problem.  Awesome!  Thank you.

I can simply modify my query to do this one project at a time.  :)
0
BTW - none of this worked for me in 5.2.4.  I had to use:
Remove <username>
0
Hi Michael,

Please, specify which solution doesn't work? Actually, this way:
Remove <username>

was also described above.

Thank you.
0

Please sign in to leave a comment.