You'll need to create a branch spec to tell the server the relationship between the two directories.
- run
p4 branch some_branch_name
In the view field put:
//depot/directory1/... //depot/directory2/...
Save the form and run
p4 -c my_workspace unshelve -s 17654070 -n -b some_branch_name