Only one task In progress per assignee

Is it possible to write workflow wich will move all the others task assined to the same person to Open state when the current one is moved to In progress?
0
3 comments
Yep, the following workflow achieves this:
rule Move to Open 
 
when State.becomes({In Progress}) && loggedInUser == Assignee { 
  var assignedIssues = loggedInUser.getIssues(Everything, "for: me"); 
   
  for each myIssue in assignedIssues { 
    if (myIssue != issue) { 
      myIssue.State = {Open}; 
    } 
  } 
}
0
Thank you!

Could you please explain what "for: me" does?
There are some issues which are closed but they are shown under the filter. Moreover they are shown for every user in YT.

for-me-filter.png
0
for: me is the search query which gets issues assigned to you. Please use Исполнитель: я for the Russian localization.
0

Please sign in to leave a comment.