I'm currently struggling with how to manage the response from VSTS API in typescript.
Is there a way to handle this interface effectively?
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;
}
Within my code, I am attempting to iterate through the 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>
Does anyone have a brilliant idea on how to solve this issue?