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

public void AddQuestion(
	ProjectTaskBase projectTask,
	User recipient,
	string description,
	bool showAll
)

Parameters

projectTask
Type: ProjectTaskBase
Project task, the question is asked about. Object. Access path: PublicAPI.Projects.ProjectTaskBase
recipient
Type: User
Responsible (who receives the question). Object. Access path: PublicAPI.Portal.Security.User
description
Type: System String
Description (question text)
showAll
Type: System Boolean
Show to everyone
Examples

//load the required data 
var projectTask = PublicAPI.Projects.Tasks.Load(3); //load the project task by ID 
var recipient = PublicAPI.Portal.Security.User.Load(3); //load the user by ID 
var description = "Question description"; //description (question text) 
var showAll = true; //show to everyone (yes/no) 

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