How to insert a HTML to custom field?

Is there any way to insert a HTML string to Aspose.Tasks custom field? here is my sample code.

var projectAttribute = project.ExtendedAttributes.FirstOrDefault(i => i.Alias == "MyJourney");

                        if (projectAttribute == null)
                            ExtendedAttributeTask taskAttribute = (ExtendedAttributeTask)Enum.Parse(typeof(ExtendedAttributeTask), "Text1");

                            projectAttribute = ExtendedAttributeDefinition.CreateTaskDefinition(CustomFieldType.Text, taskAttribute, "MyJourney");


                        var taskAttrubute = projectAttribute.CreateExtendedAttribute();

                        if (projectAttribute.CfType == CustomFieldType.Text)
                            taskAttrubute.TextValue = value; //here value is the HTML string


We have logged this issue with ID “TASKSNET-3033” for further investigation. You will automatically be informed here once we have more information to share.

Hello @srinudhulipalla

The ExtendedAttribute taskAttrubute is created correctly, but it should be added to a task:

// add follow lines to your code
Task t = project.RootTask.Children.GetById(1); // get the existing task or create a new one