PublicAPI.Projects.ProjectTask.SetTaskCompletePercent ELMA API Documentation
Set the task completion rate
 
 
Syntax

public void SetTaskCompletePercent(
	ProjectTask projectTask,
	long completePercent
)

Parameters

projectTask
Type: ProjectTask
Project task, the completion rate is set to. Object. Access path: PublicAPI.Projects.ProjectTask
completePercent
Type: System Int64
Completion rate
Examples

//load the necessary data 
var projectTask = PublicAPI.Projects.ProjectTask.Load(3); //load the project task by ID 
long completePercent = 80; //set the task completion rate 

//set the task completion rate
PublicAPI.Projects.ProjectTask.SetTaskCompletePercent(projectTask, completePercent);
See Also