Parent Issue Assignments Never Saved in Dummy Data — Missing append in Loop
@vihar is already working on this.
Since May 30, 2026.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When I generate dummy data, no parent-child issue relationships are created despite the function appearing to assign them. The loop sets sub_issue.parent_id on objects in memory but never appends them to bulk_sub_issues, so Issue.objects.bulk_update(bulk_sub_issues, ...) is always called with an empty list.
Code pattern:
bulk_sub_issues = []
for sub_issue in sub_issues:
sub_issue.parent_id = parent_issues[...] # modifies object but never appends it
Issue.objects.bulk_update(bulk_sub_issues, ["parent"], batch_size=1000) # always empty
What I expect is that generated dummy issues have parent-child relationships correctly saved to the database.
File: apps/api/plane/bgtasks/dummy_data_task.py, lines 384–388 — bulk_sub_issues.append(sub_issue) is missing inside the loop
Steps to reproduce
- Trigger dummy data generation
-
- Check the created issues in the database
-
- Observe no issue has a parent_id set despite the function intending to create a hierarchy
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.