Skip to content

Add "Export task as JSON" button in task modal 📤 #382

Description

@anoopcodehack

Add "Export task as JSON" button in task modal 📤

File: client/src/components/Task/TaskModal.jsx

Power users want to export task data 💀
Maybe to paste into another tool fr!!

Fix: add export button in modal footer:
const handleExportJSON = () => {
const data = JSON.stringify({
title: task.title,
description: task.description,
status: task.status,
priority: task.priority,
tags: task.tags,
snippets: task.snippets,
createdAt: task.createdAt
}, null, 2)
navigator.clipboard.writeText(data)
setExported(true)
setTimeout(() => setExported(false), 2000)
}


{exported ? '✅ Copied!' : '📤 Export JSON'}

~12 lines! No backend needed 🎯

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions