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,
	IEnumerable<Attachment> attachments
)

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
attachments
Type: System.Collections.Generic IEnumerable Attachment 
Attachments. Object. Access path: PublicAPI.Portal.Objects.Common.Attachment
Remarks

Справка по EQL-запросам
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 attachmets = PublicAPI.Portal.Objects.Common.Attachment.Find(new Filter{Query = "Id in (2,3)"},null); //find all the attachments with IDs 2 and 3, using EQL search 
var showAll = true; //show to everyone (yes/no) 

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