I struggling how to handle response from VSTS API in typescript.
Is there a way to handle this interface?
export interface Fields {
'System.AreaPath': any;
'System.TeamProject': string;
'System.IterationPath': string;
'System.WorkItemType': string;
'System.State': string;
'System.Reason': string;
'System.AssignedTo': string;
'System.CreatedDate': Date;
'System.CreatedBy': string;
'System.ChangedDate': Date;
'System.ChangedBy': string;
'System.Title': string;
'Microsoft.VSTS.Feedback.ApplicationType': string;
'System.Description': string;
'System.History': string;
'Microsoft.VSTS.Feedback.ApplicationStartInformation': string;
'Microsoft.VSTS.Feedback.ApplicationLaunchInstructions': string;
}
In my code i try to loop out Fields (workItems === Fields)
<tbody>
<tr *ngFor="let workitem of workItems">
<!-- *ngFor="let field of workitems.fields" -->
<td>{{workitem.fields.System.AreaPath}} << THIS IS NOT ALLOWED</td>
</tr>
</tbody>
Any one got a brilliant idea how to solve this?