create task by ticket

This commit is contained in:
hamid zarghami
2026-07-20 15:38:08 +03:30
parent 2af7323a6a
commit 65154a1aab
17 changed files with 372 additions and 5 deletions
@@ -19,10 +19,11 @@ import UserAvatar from '../../taskmanager/components/UserAvatar'
import type { SelectedUser } from '../../taskmanager/project/components/CreateProjectSidebar'
type Props = {
ticketId: string
ticketSubject: string
}
const CreateTaskFromTicket: FC<Props> = ({ ticketSubject }) => {
const CreateTaskFromTicket: FC<Props> = ({ ticketId, ticketSubject }) => {
const { t } = useTranslation('global')
const [open, setOpen] = useState(false)
const [workspaceId, setWorkspaceId] = useState('')
@@ -154,6 +155,7 @@ const CreateTaskFromTicket: FC<Props> = ({ ticketSubject }) => {
taskPhaseId,
order: selectedPhase?.tasks?.length ?? 0,
projectId,
ticketId,
...(userIds.length ? { userIds } : {}),
})