54 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: calendar.create.howto
title: 在日历里创建任务
type: howto
feature: calendar
scope: end-user
locale: zh
aliases:
- 日历建任务
- 日历加事件
- 日历点空白处
- 在日历上选时间段
- 日历新建
related_tools: [create_task]
related_pages: [calendar]
prerequisites:
- 至少加入一个项目(要选项目归属)
- 桌面端,移动端无创建入口(只读)
negative:
- 日历不能直接建"游离事件",必须落到某个项目下
- 不能在日历创建会议 / 签到,只能建任务
- 新建时所选项目必须有 TASK_ADD 权限
last_verified: v1.7.90
---
# 在日历里创建任务
## 是什么
在桌面端日历的月 / 周 / 日视图,用户可在空白单元格或时间段上拖框选区,触发"创建任务"弹窗。新任务会按所选时段填 start_at / end_at归属于用户选定的项目。
## 入口
- 桌面端:日历任意视图空白处单击 / 拖动选区
- 桌面端:日历右上角「+ 添加任务」按钮(不限时段)
- 移动端:不支持,仅看视图
## 操作步骤
1. 在月视图:点单元格 → 选当天作为日期范围
2. 在周 / 日视图:纵向拖框选区 → 选具体时段
3. 弹出任务创建对话框:
- 必填任务名≤255 字符)、所属项目、所属列
- 自动填start_at / end_at按选区、负责人 = 当前用户
4. 点保存,任务出现在日历事件中
## 与 [[task.create.howto.quick]] 的关系
- 都调相同的 `create_task` 后端 API
- 差异:日历入口的时间默认按选区,普通快速建任务时间默认为空
- 在项目详情页快建的任务也会同步出现在日历(如果你是负责人 + 有 end_at
## 不支持
- 不能"建临时事件不绑定项目"
- 不能批量从日历建任务
- 移动端不能建(只读)
- 不能"重复创建同时段连续多天的任务",循环用 [[task.recurring.howto]]