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.

project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
prj = Rjb::import('com.aspose.tasks.Prj')
project.set(prj.NEW_TASK_START_DATE, Rjb::import('com.aspose.tasks.TaskStartDateType').CurrentDate)
project.save("set_attributes_for_new_tasks.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
puts "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: