Setting Attributes for New Tasks in Ruby

Aspose.Tasks - Setting Attributes for New Tasks

To set attributes for new tasks using Aspose.Tasks Java for Ruby, simply invoke SetAttributesForNewTasks module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2prj = Rjb::import('com.aspose.tasks.Prj')
3project.set(prj.NEW_TASK_START_DATE, Rjb::import('com.aspose.tasks.TaskStartDateType').CurrentDate)
4project.save("set_attributes_for_new_tasks.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
5puts "Set attributes for new tasks, please check the output file."

Download Running Code

Download Setting Attributes for New Tasks (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.