public void AddComment( SMARTTask task, string comment, IEnumerable<Attachment> attachments )
Add a comment to the task
Syntax
public void AddComment( SMARTTask task, string comment, IEnumerable<Attachment> attachments )
Parameters
- task
- Type: SMARTTask
Task. Object. Access path: PublicAPI.KPI.Objects.SMART.SMARTTask
- comment
- Type: System String
Comment
- attachments
- Type: System.Collections.Generic IEnumerable Attachment
Attachments. Object. Access path: PublicAPI.Portal.Objects.Common.Attachment
Examples
//load the task by ID var task = PublicAPI.Portal.TaskBase.Load(3); //comment to add var comment = "Comment"; //Add the comment PublicAPI.Portal.TaskBase.AddComment(task, comment);
See Also