PublicAPI.Projects.Tasks.AddQuestion ELMA API Documentation
Ask a question about a project task
 
 
Syntax

public void AddQuestion(
	ProjectTaskBase projectTask,
	Question question
)

Parameters

projectTask
Type: ProjectTaskBase
Project task, the question is asked about. Object. Access path: PublicAPI.Projects.ProjectTaskBase
question
Type: Question
Question. Object. Access path: PublicAPI.Portal.Objects.Tasks.Question
Examples

//load the required data 
var projectTask = PublicAPI.Projects.Tasks.Load(3); //load the project task by ID 
var question = PublicAPI.Portal.Objects.Tasks.Question.Load(3); //load the question by ID 

//ask the question
PublicAPI.Projects.Tasks.AddQuestion(projectTask, question);
See Also