Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Intranet/Project Mgmt / Project with predefined tasks View modes: 
User avatar
Member
Member
josip.krajina-josakra - 3/20/2012 5:25:13 AM
   
Intranet/Project Mgmt / Project with predefined tasks
Hello world,
I hope I can get an good hint or direction how to solve my next issue:

Is it possible, and how, to predefine projects with predefined tasks?
I mean when we create a new project to have already an dropdown with predefined Project infos and also with predefined task related to this project?

Hope you understand my issue, for any question sfell free..

thanks for your help

br
josip

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/26/2012 5:09:25 PM
   
RE:Intranet/Project Mgmt / Project with predefined tasks
Hello.

I guess you can do this in API. We have code examples both for managing projects and managing tasks.

Best Regards,
Radek Macalik

User avatar
Member
Member
josip.krajina-josakra - 3/27/2012 4:04:33 AM
   
RE:Intranet/Project Mgmt / Project with predefined tasks
Hello Radek,
does it mean that I can add the task properties to the project properties?
Like:
newTask.ProjectTaskDisplayName = "My new task";
newTask.ProjectTaskCreatedByID = currentUserID;
newTask.ProjectTaskOwnerID = currentUserID;
newTask.ProjectTaskAssignedToUserID = currentUserID;
newTask.ProjectTaskStatusID = status.TaskStatusID;
newTask.ProjectTaskPriorityID = priority.TaskPriorityID;
newTask.ProjectTaskProjectID = project.ProjectID;

But then I need the project ID, and do I have the ID already when we add a new project before we save it?

Thanks
Josip

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/29/2012 7:09:52 PM
   
RE:Intranet/Project Mgmt / Project with predefined tasks
Hello.

Yes, you can set these properties as it is shown in this example. As for ID - it is generated automatically (together with some other properties, like modified date, guid and so) when you call SetProjectTaskInfo() method.

Best Regards,
Radek Macalik