Can we create a process that will automate the creation of new project from a project template?
Please share your suggestions and approach as always you do.
Thanks in advance.
OK zilansyed , I've got part of it using
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">
<Header version="7.5" action="write" objectType="project" externalSource="NIKU"/>
<!-- create a new project from a template -->
fromTemplate = "te_2"
name = "zFromtemplate5"
projectID = "zFromtemplate5"
description = "zFromtemplate5"
managerResourceID = ""
start = "2016-06-01T00:00:00"
finish = "2016-12-01T00:00:00"
priority = "10"
progress = "1"
format = "11"
<!-- create a new task to the above project -->
name="XOGed task 1"
So I create a project from a template and the input file goes on with data from the project to be created adding a task to it.
What was the problem yesterday was that the key task defaults to false if the attribute is not present, but the filter in the task list defaults to true. I assume the task was there, but I did not see it because of the filter :-(
As you can see I have orderID="1" , but it is ignored and the new task will be added to the end.
If that is the case, then one way to do that would be to read the project, delete all the tasks and re-create them with the order you want. Does not sound like fun and I don't know if that can be done with XOG.
You can give a try to use project write xml in a gel script to create a project automatically through process.
Yes I have done the automation for creating new projects through process. But Now i want to create new projects using existing project templates from Clarity through process.
So can you suggest me how to achieve this..
Put the template data into the xml file.
I have used "prj_projects_from_template_write" xml file and able to create new projects using project template.
I could see the tasks from project template has been loaded into new project but not the new task.
How can i load the new tasks into the project ?
While Xogging in, Can i change the WBS sequence ? If yes, how can i achieve that ?
Thanks in advance!
Basically I should think that you write the project twice once create from template and the second time add the task.
I made a few quick tries trying to do both writes in the same file and also as two files. Did not get the new task added either way.
So something was wrong.
I am not sure if you can determine the sequence.
There are the tags
I tried to change the WBS order by first reading out a project then changing those and also changing the order of tasks in the xml file, but no change was achieved.
One thing that disturbs that, is that the WBS sequence is created on fly when the tasks are loaded and you can sort the task list based on different columns so what you see is not necessarily the WBS sequence
I have used the below XML code to create projects from existing templates..
fromTemplate = "aaaTemplate2" --Existing project template project ID
name = "aaaFrom2"
projectID = "aaaFrom2"
description = "aaaFrom2"
managerResourceID = "kdinsmore"
start = "2004-01-01T00:00:00"
finish = "2005-01-01T00:00:00"
stageCode = "PRJ_NPD_IDEA"
processCode = "PRJ_NPD"
goalCode = "AVOID_COST"
priority = "18"
Projects created successfully with templates tasks..
<Task chargeCodeExtID="XX" evCalcMethod="0" finish="XX" fixed="false" key="false"
lockedForScheduling="false" milestone="false" name="XX"
nextSiblingOf="XX" openForTimeEntry="true" orderID="2" outlineLevel="1" percComp="0" start="XX" status="0"
New Tasks didn't appear in the project..
Is this a know issue in Clarity PPM ?
Have you checked this ?
I checked the provided link but the context is different. I'm able to create the projects using existing templates but not the new tasks..
Please share me more if you have anything specific to this.
Thanks for the inputs and will try it from my end, share you the update..
Now i could able to create new tasks. Thanks for the help.
So do you have any approach for WBS sequence change through process. Please share the info..
Seems that in your case you also had the key="false".
Did you use the default filter for the task list keytask= Yes
Retrieving data ...