Feature #29076

Add button to "Create and follow" when adding a subtask from the parent issue

Added by Ewan Makepeace over 4 years ago. Updated 6 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Marius BALTEANU% Done:

0%

Category:Issues
Target version:5.0.0
Resolution:

Description

If I create a SubTask on a Parent - the first time I save it I land not on my new task but back on the parent. Subsequently if I edit the subtask and save I remain on the subtask.

The initial behaviour is unexpected and unwelcome. Often half way through creating a task I realise I need to move it to a different project (which you can only do after saving) and hit edit, to reassign and end up accidentally reasigning the parent. Other times I realise I have made an error and end up editing the parent instead.

I don't understand the rationale for this behaviour - I find it unexpected and annoying?

mockup_create_and_return.png (74.3 KB) Bernhard Rohloff, 2021-01-25 08:51

0001-Add-button-to-Create-and-follow-when-adding-a-subtas.patch Magnifier (3.6 KB) Marius BALTEANU, 2021-02-27 17:02


Related issues

Duplicated by Redmine - Defect #34594: Redmine 3.3.2 redirect after creating issue broke Closed

Associated revisions

Revision 21269
Added by Marius BALTEANU 11 months ago

Adds button to "Create and follow" when adding a subtask from the parent issue. Now the user have the following options:
  • Create: redirects the user to the parent task (existing behaviour)
  • Create and follow: redirects the user to the newly created subtask (new behaviour)
  • Create and add another: redirects the user to new subtask (existing behaviour).

(#29076).

Revision 21270
Added by Marius BALTEANU 11 months ago

Update locales (#29076).

Revision 21272
Added by Go MAEDA 11 months ago

Fix RuboCop offense Naming/MethodName due to r21269 (#29076).

History

#1 Updated by Go MAEDA over 4 years ago

I am also annoyed by this behavior. Sometimes I mistakenly update a parent issue instead of a subtask.

#2 Updated by Holger Just over 4 years ago

This behavior was introduced in r16317 released with Redmine 3.4.0

#3 Updated by Go MAEDA over 4 years ago

  • Affected version set to 3.4.0

#4 Updated by Go MAEDA about 4 years ago

Go MAEDA wrote:

I am also annoyed by this behavior. Sometimes I mistakenly update a parent issue instead of a subtask.

But I realized that the current behavior is useful when you create subtasks for a particular issue one after another.

#6 Updated by Marius BALTEANU over 1 year ago

  • Related to Defect #34594: Redmine 3.3.2 redirect after creating issue broke added

#7 Updated by Marius BALTEANU over 1 year ago

  • Related to deleted (Defect #34594: Redmine 3.3.2 redirect after creating issue broke)

#8 Updated by Marius BALTEANU over 1 year ago

  • Duplicated by Defect #34594: Redmine 3.3.2 redirect after creating issue broke added

#9 Updated by Marius BALTEANU over 1 year ago

Go MAEDA wrote:

Go MAEDA wrote:

I am also annoyed by this behavior. Sometimes I mistakenly update a parent issue instead of a subtask.

But I realized that the current behavior is useful when you create subtasks for a particular issue one after another.

Indeed, both use cases are valid.

What if we introduce a third button "Create and follow" and then the user will have all the options available:
1. Create -> creates the subtask and returns to parent
2. Create and follow -> creates the subtask and stays on the newly created issue (old behaviour)
3. Create and add another -> creates the subtasks and stays on the subtask form.

#10 Updated by Bernhard Rohloff over 1 year ago

Marius BALTEANU wrote:

Go MAEDA wrote:
What if we introduce a third button "Create and follow" and then the user will have all the options available:
1. Create -> creates the subtask and returns to parent
2. Create and follow -> creates the subtask and stays on the newly created issue (old behaviour)
3. Create and add another -> creates the subtasks and stays on the subtask form.

I like the suggestion. These are three valid options and I think it would be a good thing if users could choose between them. From my point of view I would rename Marius' first option to "Create and return" because the second option "Create and follow" is the default behavior of "Create" in other cases and I would not mix them up.

So this would be my favorite order:

1. Create -> creates the subtask and stays on the newly created issue (old/default behaviour)
2. Create and return -> creates the subtask and returns to parent
3. Create and add another -> creates the subtasks and stays on the subtask form.

#11 Updated by Go MAEDA over 1 year ago

Bernhard Rohloff wrote:

From my point of view I would rename Marius' first option to "Create and return" because the second option "Create and follow" is the default behavior of "Create" in other cases and I would not mix them up.

I also think so.

So this would be my favorite order:

1. Create -> creates the subtask and stays on the newly created issue (old/default behaviour)
2. Create and return -> creates the subtask and returns to parent
3. Create and add another -> creates the subtasks and stays on the subtask form.

+1 for this.

#12 Updated by Bernhard Rohloff over 1 year ago

This is how it would look like...

The list of buttons might get a bit too overwhelming depending on the length of the description text. Perhaps it would be beneficial to move the additional options to a ... menu.

#13 Updated by Marius BALTEANU over 1 year ago

  • Assignee set to Marius BALTEANU

#14 Updated by Marius BALTEANU over 1 year ago

Thanks Bernhard for you feedback. I tried to implement as you proposed, but it requires more changes in the redirect_after_create method from IssuesController in order for the button "Create" to behave differently depending on the params (I can provide more details, if you want).

Considering that we already have the term "follow" (Move and follow, Copy and follow), I've added the "Create and follow" option which required only few lines of code, please see the attached patch.

#15 Updated by Ewan Makepeace about 1 year ago

I really dont care about all the fancy options - they would be nice, but I am STILL routinely editing the parent task instead of the just created task on a routine basis. This is really annoying me.

#16 Updated by Marius BALTEANU 11 months ago

  • Subject changed from Dont return to Parent Task on Submit to Add button to "Create and follow" when adding a subtask from the parent issue
  • Status changed from New to Closed
  • Assignee set to Marius BALTEANU
  • Target version changed from Candidate for next major release to 5.0.0

Patch committed. You can now use the button "Create and follow" to stay on the newly created subtask.

#17 Updated by Go MAEDA 6 months ago

  • Tracker changed from Patch to Feature

Also available in: Atom PDF