- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
Have Project Management Available Through Scripting
Status: ImplementedAdding Project Management items in the Project Management tab is tedious at times. Being able to add project items through scripting would allow an automated procedure involving less time consumption and tedious routine work.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
There is a slight workaround, if you aren't using it already. You can setup a relationship tab, create all your new task items via that, then when you go to the PM tab you can add linked items & just tick the ones you need to add. However, you still have to go to each individual task item & modify the milestones if they aren't how you would like them to be.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
Correction. You can actually do it all from the 'Add Linked Items' button in the PM tab.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
Unfortunately I'm not able to comment on any time frames for the release of features in the product, however… I can say that expanding the scripting engine’s reach into Project Management, relationships, workflow items, bom, …., etc. is a high focus of my scripting efforts.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
We're part way there, read access to the project management tab has been added in the Feb. 2013 PLM 360 release. We'll followup with write access to project mangement in scripting.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
Right now there is only read access, but write access is required as well.
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Highlight
- Email to a Friend
- Report Inappropriate Content
Here's a simple example of scripting to project management tasks:
//adds tasks to projects
if(item.PROJECT!== null){ // a picklist of projects on the tasks item details page.
var taskExists = false;
var project = item.PROJECT.project;
//check to see if the task is already added to the project
for(var i =0 ; i < project.subTasks.length; i++){
if(item.descriptor.descriptor === project.subTasks[i].title){
taskExists = true;
break;
}
}
if(taskExists === false){
//add the task to the project
item.PROJECT.project.addTask(item, new Date(), new Date(), 10);
}
}
Read:
item.project.<FIELD> where <FIELD> is: title, start_date, end_date, duration, progress, predecessors, subTasks, status, statusCode
item.project.subTasks[i].<FIELD> where <FIELD> is: id, title, start_date, end_date, duration, progress, predecessors, subTasks, children, status, statusCode, owner, target, isReadOnly
Write:
item.project.addTask("Task Name", startDate, endDate, progressPct); // Free-form text task
item.project.addTask(targetItem, startDate, endDate, progressPct); // Item linking task or milestone task
