Howto create a workflow which ask the user whether he wants to do a certain action

Hi,

I want to create a workflow which ask the user whether he really wants to change the project or not.
This is importent since we use permission for projects in order to show/hide projects to certain groups. If now a user unintended changes the project, he must be asked.
  • User changes the project from ProjectA to ProjectB
  • Youtrack shows a messagebox "Do you really want to change the project"
  • User can now decide whether he wants to change the project or not.

Is this possible to achieve whit a workflow?

best regards
manuel
4 comments
Comment actions Permalink
Hello Manuel,
YouTrack workflows are not designed to create confirmation dialogs.
Instead, I'd suggest you to narrow permissions for some users. Please be aware that a user requires non of the permissions from "Administrative Permissions" to be able to observe/edit project issues.

Best regards,
  Alexander
0
Comment actions Permalink
Hi alexander,

Unfortunately this doesn't solve our problem.
We have several cusomers on our youtrack instance. Our developer must have access to all projects, the customer must only have access to its own project.

What now happened is that one of our developer unintended has assigned an existing issue from one project to another.

Is it possible to prohibit the change of the project for certain groups? This would solve our problem. Then the "regular" developer could not change the project, but the youtrack admin could.


best regards
manuel
0
Comment actions Permalink
You can write the workflow:
rule change project restriction 
 
when project.changed { 
  assert loggedInUser.isInGroup("youtrack-admins"): "Project changing is prohibited for users of 'youtrack-admins' group."; 
}
prettyPrint();
And attach it to all other projects. It prohibits switching project by members of 'youtrack-admins' group.
0
Comment actions Permalink
Hi Dimitry,

Thanks for your answer.
With this we can solve our requirement.

cheers
manuel
0

Please sign in to leave a comment.