+menu: allow creation of sub tasks as well
This is the modified adoption of a suggestion in issue #22941.
In the view of a ticket we have the section Subtasks. The user can add (create a new) ticket there, but is not able to link an existing one. This could be optimized with the new "+" menu (see #15880 from where I've got this screenshot):
Of course, this would require that the menu items are context dependend, since it makes no sense when the user sees e.g. the Roadmap page and gets a "New subtask" entry (sub task of what?). But it does make sense when the user sees a ticket! So the menu entry could be only visible if the user has entered the ticket view. Since I haven't tried 3.3 so far I actually don't know if the menu is already context dependent.
With this the "Add" link/button (or "New subtask" if #22491 was implemented) could be left as it is, but with the proper meaning that the user just adds an existing ticket as subtask. It would than have the logic as the Related issues "Add" link/button.In short:
- New subtasks will be created with the "+" menu.
- The "+" menu gets dynamic.
- The ticket's Subtasks section provides a button to link existing tickets ("Add").