
Populate HTML Template with External Data using HTML Manipulation API
We are pleased to announce the new release of Aspose.Tasks Cloud 18.9. This release made changes in ExtendedAttribute type. Added fields such as ‘DateValue’, ‘DurationValue’, ‘NumericValue’, ‘FlagValue’ and ‘TextValue’ and removed fields such as ‘DurationFormat’, ‘Value’ and ‘AttributeType’ fields. Moreover, a few bugs were fixed. For a detailed note on what is new and fixed, please visit the release notes section of Aspose.Tasks Cloud documentation.
Important Changes and New Features
1. Duration type was added:
{
"TimeSpan": "10:00:00",
"TimeUnit": "Hour"
}
2. Changes in ExtendedAttribute type
Changes in ExtendedAttribute type (used in Task.ExtendedAttributes, Resource.ExtendedAttributes, ResourceAssignment.ExtendedAttributes collections):
- ‘DurationFormat’ field was removed
- ‘Value’ field was removed
- ‘AttributeType’ field was added
- Following fields were added: ‘DateValue’, ‘DurationValue’, ‘NumericValue’, ‘FlagValue’, ‘TextValue’
The following table shows which field contains the value of extended attribute depending on ExtendedAttribute’s type. Therefore, in order to get or set the value of a custom field with ‘Date’, ‘Start’ or ‘Finish’ type one should use ‘DateValue’ field.
Extended Attribute type Extended Attribute field
Date, Start, Finish DateValue Duration DurationValue Flag FlagValue Number, Cost NumericValue Text TextValue
Example
"Task" :
{
...
"ExtendedAttributes": [
{
"FieldId": "188743950",
"AttributeType": "Date",
"DateValue": "2018-03-04T08:15:00+07:00",
"TextValue": null
},
{
"FieldId": "188743960",
"AttributeType": "Duration",
"DurationValue": {
"TimeSpan": "10:00:00",
"TimeUnit": "Hour"
}
}
]
...
}
3. GET /{name}/extendedattributes/{index} and DELETE /{name}/extendedattributes/{index} endpoints:
The index parameter can either be a FieldId as well as index of attribute in project.ExtendedAttributes collection.
Request
curl -v https://api.aspose.cloud/v1.1/tasks/sample.mpp/extendedattributes/188743731 \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"ExtendedAttribute": {
"FieldId": "188743731",
"FieldName": "Text1",
"CfType": "Text",
"Guid": "000039B7-8BBE-4CEB-82C4-FA8C0B400033",
"ElementType": "Task",
"MaxMultiValues": -1,
"UserDef": false,
"Alias": null,
"SecondaryPid": "255869028",
"AutoRollDown": false,
"DefaultGuid": null,
"LookupUid": "F45D601B-70C5-E311-A5BA-D43D7E937F92",
"PhoneticsAlias": null,
"RollupType": "Null",
"CalculationType": "Lookup",
"Formula": null,
"RestrictValues": true,
"ValuelistSortOrder": 0,
"AppendNewValues": false,
"Default": null,
"ValueList": [
{
"Id": 1,
"Val": "1",
"DateTimeValue": null,
"DurationValue": null,
"Description": "descr",
"Phonetic": null
}
],
"SecondaryGuid": "000039B7-8BBE-4CEB-82C4-FA8C0F404064"
},
"Code": 200,
"Status": "OK"
}
4. Bug Fixes
Some earlier reported bugs are also fixed. For complete details, please check Aspose.Tasks for .NET 18.9 Release Notes
Aspose Cloud Resources
You may visit the following API resources for getting started and working with the API:
- Aspose.Tasks Cloud Product Family – An overview of Aspose.Tasks Cloud APIs
- Product Documentation – Detailed documentation with code snippets as well as details about other exciting features offered by API
- API Reference Guide – Quickly browse through all Aspose.Tasks Cloud APIs and test them in the browser using SwaggerUI
- Aspose.Tasks Forum – Our free online support forum where we address your queries and inquiries