diff --git a/src/app/models/work-item.spec.ts b/src/app/models/work-item.spec.ts index f3d13ac19..4327dc660 100644 --- a/src/app/models/work-item.spec.ts +++ b/src/app/models/work-item.spec.ts @@ -156,7 +156,7 @@ describe('WorkItemMapper', () => { }); it('should correctly convert to UI model - 2', () => { - const expWIService = { + const expWIService = { 'attributes': { 'system.created_at': '2017-06-28T07:44:36.640764Z', 'system.description': 'Cannot resolve Area/Iteration info for new WI created in in-memory mode under Backlog > Quick Add', @@ -239,7 +239,7 @@ describe('WorkItemMapper', () => { 'labels': { 'data': [] }, - 'system.boardColumns': {}, + 'boardcolumns': {}, 'workItemLinks': { 'links': { 'related': 'https://api.openshift.io/api/workitems/8bccc228-bba7-43ad-b077-15fbb9148f7f/links' diff --git a/src/app/models/work-item.ts b/src/app/models/work-item.ts index 30fa0e636..4e363ecbd 100644 --- a/src/app/models/work-item.ts +++ b/src/app/models/work-item.ts @@ -304,7 +304,7 @@ export class WorkItemMapper implements Mapper { toPath: ['editable'], toValue: false }, { - fromPath: ['relationships', 'system.boardcolumns', 'data'], + fromPath: ['relationships', 'boardcolumns', 'data'], toPath: ['columnIds'], toFunction: (data) => { return Array.isArray(data) ? data.map(col => col.id) : null; @@ -414,7 +414,7 @@ export class WorkItemMapper implements Mapper { ); }.bind(this) }, { - toPath: ['relationships', 'system.boardcolumns', 'data'], + toPath: ['relationships', 'boardcolumns', 'data'], fromPath: ['columnIds'], toFunction: (data) => { if (!data) {return null; }