Leantime/leantime · error

Group not found for key:

Error message

Group not found for key:

What it means

Error "Group not found for key:" thrown in Leantime/leantime.

Source

Thrown at app/Domain/Widgets/Templates/partials/myToDosLoadMore.blade.php:88

            // Find existing group's sortable container
            const existingGroup = document.querySelector(`[id*="ticketBox1-${groupKey}-"] .sortable-list`);

            if (existingGroup) {
                // Append task to existing group
                existingGroup.insertAdjacentHTML('beforeend', taskContent);

                // Update counter
                const counter = document.querySelector(`#task-count-${groupKey}`);
                if (counter) {
                    const currentText = counter.textContent;
                    const currentCount = parseInt(currentText.match(/\d+/)[0]) || 0;
                    counter.textContent = `(${currentCount + 1})`;
                }
            } else {
                // Group doesn't exist yet - this shouldn't happen with global pagination,
                // but if it does, we could create a new group here
                console.warn('Group not found for key:', groupKey);
            }
        });

        if (additionalTasks.length > 0) {
            // Re-initialize nested sortable for new content
            jQuery('.sortable-list').nestedSortable();

            // Re-initialize interactive elements
            leantime.ticketsController.initMilestoneDropdown();
            leantime.ticketsController.initStatusDropdown();
            leantime.ticketsController.initDueDateTimePickers();

            // Re-initialize add task buttons
            initAddTaskBtns();
        }
    });
</script>

View on GitHub (pinned to 9a9f49f100)

When it happens

Trigger: Thrown at app/Domain/Widgets/Templates/partials/myToDosLoadMore.blade.php:88 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Leantime/leantime@9a9f49f100 (2026-08-21). Data as JSON: /api/errors/871a158918ea1e61. Report an issue: GitHub.