Replace index placeholder for root-task
This commit is contained in:
parent
4b9dd4d17c
commit
59ee88b5fe
@ -27,9 +27,10 @@ public class TaskSeriesService {
|
|||||||
return ServiceExitCode.INVALID_PARAMETER;
|
return ServiceExitCode.INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rootTask.setTaskName(rootTask.getTaskName().replace("${i}", convertIndexToString(1)));
|
||||||
LocalDate currentTaskDate = rootTask.getStartDate().plusDays(taskRepeatInfo.getOffset());
|
LocalDate currentTaskDate = rootTask.getStartDate().plusDays(taskRepeatInfo.getOffset());
|
||||||
TaskSerie taskSerie = new TaskSerie();
|
TaskSerie taskSerie = new TaskSerie();
|
||||||
int index = 1;
|
int index = 2;
|
||||||
while(currentTaskDate.isBefore(taskRepeatInfo.getEndingDate())) {
|
while(currentTaskDate.isBefore(taskRepeatInfo.getEndingDate())) {
|
||||||
Task task = Task.cloneTask(rootTask);
|
Task task = Task.cloneTask(rootTask);
|
||||||
task.setStartDate(currentTaskDate);
|
task.setStartDate(currentTaskDate);
|
||||||
|
Loading…
Reference in New Issue
Block a user