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?
3 comments
Comment actions Permalink
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}; 
    } 
  } 
}
prettyPrint();
0
Comment actions Permalink
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
Comment actions Permalink
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.