Update create flow for including Tasks on Boards

Summary

In #469544 we are working to add Task work items to Boards. With the addition of Tasks, we need to consider how this effects the item create flow from the top of Lists on Boards. Today, you can only create Issues from this location. This means if a user has the board scoped to only show Tasks (see &16594), creating items from this flow would not appear in the list (as they would be Issues).

Our eventual goal is to move towards the use of the new work item create modal for this flow (#519651 (closed)). That introduces some additional complexity though that we want to hold off on in favor of addressing in the new Saved Views work. In the interim, we should consider a low effort solution that can solve this problem on the legacy boards experience in a graceful manner.

Proposal

Caution

This work is only necessary for enabling Tasks on Boards for the legacy boards experience. For the new planning views experience, #519651 (closed) is the desired solution.

Utilize the existing creation form on Lists, while making some slight modifications to support Tasks.

Option 1 (assumes lowest effort)

  • If the board is scoped to the Issue type only or Issue & Task types, always create an Issue item using the current form.
  • If the board is scoped to Tasks only, always create a Task item using the current form (updating the button on form to "Create task").

Option 2 (assumes higher effort)

  • If the board is scoped to the Issue type only, utilize the current issue creation form and always create an Issue item.
  • If the board is scoped to Issue & Task types, utilize a modified version of the current issue creation form that includes a Type select field, which updates the Create button (ex: "Create issue") based on the type selected along with creating the item based on the selected type.
  • If the board is scoped to the Task type only, utilize the current issue creation form (updating the button to "Create task") and always create a Task item.

Additional information (applies to both options)

  • All other logic remains the same – meaning we automatically apply metadata based on the List the user is creating the item in.
  • Update the tooltip for the plus (create) button on Lists to be Create new item rather than Create new issue for all cases.
Edited by Nick Brandt