AutoSubtasks icon indicating copy to clipboard operation
AutoSubtasks copied to clipboard

How is "Leave blank to copy Task Title and create only one subtask" really supposed to work?

Open manne65-hd opened this issue 4 years ago • 6 comments

Hey there again :-) while making final test with my new feature of magical-parameters I was trying to figure out how this feature is supposed to work. I am talking about the helptext when creating a new automatic action, where ist says:

Enter one line per task, or leave blank to copy Task Title and create only one subtask.

I have checked this on another testboard, with the current version 2.1.0 and from what I can test, this is what happens now:

  • If left completely blank ... NO auto-subtask is being created.
  • If adding blank line(s) in between other lines, then for the empty lines auto-subtasks with the task-title will be created as well as the auto-subtasks explicitly entered into the list.

Screenshots Creating an AutoSubtasks-action with blank lines CREATE AutoSubtask-action with blank lines

Resulting TASK from action as above RESULTING AutoSubtasks from action with blank lines

How is it really supposed to act?

  • Only create ONE auto-subtask, if the textarea while creating the auto-action is left completely blank, BUT ignore empty lines when other lines for subtask-titles are present ?

  • Create ONE auto-subtask, if the textarea while creating the auto-action is left completely blank OR else create as many auto-subtasks as lines have been entered into the textarea, and replace blank lines with the main-title (Status Quo like in my tests)

P.S. Whichever option it is ... I am willing and able to make that work :-)

manne65-hd avatar Apr 02 '20 10:04 manne65-hd

I'll have to take a look under the hood. It's been awhile since I wrote it. I cant even remember off the top of my head.

creecros avatar Apr 02 '20 11:04 creecros

@manne65-hd Ok, looking at your screenshots, it works as I intended. Any blank lines become a subtask, with the subtask being named the task title. I guess the wording should be more like "Leave lines blank to copy the Task Title as the Subtask Title." or something like that.

I think I never updated the help message from previous version, when it didn't have multi line support.

creecros avatar Apr 02 '20 13:04 creecros

@creecros Let's adress the wording aspects later, because I have some more changes to propose regarding that ...

First let me just try to really understand that correctly ... you don't want to have ONLY one auto-subtask created, if the textarea is left completely blank ??? If so, why?

But you want it to replace multiple blank lines (nested within other "named" auto-subtasks) to turn into subtasks with the title of the parent-task ?

manne65-hd avatar Apr 02 '20 14:04 manne65-hd

@manne65-hd

It already does what I intended it to do, so I don't "want" it to do anything. a blank line = a subtask titled the name of the task. there can be as many of these as the user desires. I never intended to replace multiple blank lines with only one.

the question here is, what do "you" want it to do. ;)

creecros avatar Apr 02 '20 17:04 creecros

a blank line = a subtask titled the name of the task.

Well, thats's what I am trying to explain, because this currently only happens if one or more blank line(s) are "wrapped" in between other lines with subtask-titles!

there can be as many of these as the user desires. I never intended to replace multiple blank lines with only one.

I wasn't talking about that either :-)

the question here is, what do "you" want it to do. ;)

Well I'd change the behaviour, so that a completely empty textarea will create exactly ONE subtask with the title of the parent-task, while retaining the rest like it is.

manne65-hd avatar Apr 02 '20 21:04 manne65-hd

Gotcha, I won't lie, haven't tested or used kanboard in a really long time. I'd you wish to change/improve, I'm all for it.

creecros avatar Apr 02 '20 22:04 creecros