带有子任务模板的任务 [英] Tasks with Subtask Template
问题描述
大家好,
我正在与SharePoint一起通过任务处理活动工作负载.
I'm working with SharePoint to handle an activity workload through tasks.
我想知道是否可以创建某种任务模板,该模板始终包含相同的子任务.
I'm wondering if it is possible to create some kind of Task Template, that will always contain the same subtasks.
示例:
任务名称
- 子任务1(验证需求)
- 子任务2(集成需求)
- 子任务3(验证和批准)
- 子任务4(更新)
现在,我必须为每个主要任务手动创建所有4个子任务.
Right now I have to create all 4 subtasks manually per main task.
共享点是否可以自动创建这些子任务
Is it possible to have sharepoint create these subtasks automatically
推荐答案
Mebiza,
要自动创建子任务,我们可能需要使用CSOM.有关的演示 如何创建和更新项目.
To create subtasks automatically, we may need using CSOM. Demos about how to create and update items.
使用代码,我们可以创建一个任务并将该任务的ParentID设置为子任务.
例如:
oListItem.set_item('ParentID','<父任务ID>');
oListItem.set_item('ParentID', '<parent task id>');
具有类似要求的线程供您参考:
最好的问候,
Linda(张)
这篇关于带有子任务模板的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!