I'm getting an incorrect date in Taskboard cards like so:
Regards
As far as I understand (considering you other posts) you use the Gantt project model with the Taskboard.
Task start / end dates are calculated in the Gantt so they might distinguish from the ones initially loaded from the server. It happens when the values do not match the Gantt scheduling rules (details on how scheduling works can be seen here).
If you provide us with the dataset we could check why the task end date gets that value.
Hi @acardy, here it is the dataset that arrives from our backend to the TaskBoard component:
{
"success": true,
"tasks": {
"rows": [
{
"id": 54675,
"name": "Elaboración del plan de ventas #1",
"percentDone": 75,
"startDate": "2021-05-25",
"endDate": "2021-05-26",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"resourceId": -252,
"resourceName": "Artemisa Artemisa Artemisa Artemisa Artemisa Artemisa Cadena Cadena Cadena Cadena López López López López López",
"resourcePhoto": "https://tprede.blob.core.windows.net/200265/tenant/200265/empleados/fotos/1993c63b-3504-445c-a3c4-12cba2adc79f.jpeg?sv=2018-03-28&sr=c&sig=vQbx1WRACPm%2BBtbs4jvdqnDa%2Fc8rr5HEsPlrxHZC%2FbU%3D&st=2021-07-01T14%3A53%3A20Z&se=2021-07-02T14%3A58%3A20Z&sp=rwdl",
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 54676,
"name": "Elaboración del proceso de ventas por comisión (INTERNOS) #2 #ProductBacklog",
"percentDone": 100,
"startDate": "2021-05-25",
"endDate": "2021-05-26",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54677,
"name": "Elaboración del proceso de ventas por comisión (EXTERNOS) #2 #ProductBacklog",
"percentDone": 35,
"startDate": "2021-05-26",
"endDate": "2021-05-27",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54678,
"name": "Elaboración del proceso de ventas de suscripciones por referidos #3 #ProductBlacklog",
"percentDone": 90,
"startDate": "2021-05-27",
"endDate": "2021-05-28",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54679,
"name": "Elaboración del política de ventas por comisión (INTERNOS) #3 #ProductBlacklog",
"percentDone": 45,
"startDate": "2021-05-28",
"endDate": "2021-05-31",
"duration": 4.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "alta"
},
{
"id": 54680,
"name": "Elaboración del política de ventas por comisión (EXTERNOS) #3 #ProductBlacklog",
"percentDone": 30,
"startDate": "2021-05-31",
"endDate": "2021-06-01",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54682,
"name": "Elaboración del política de ventas de suscripciones por referidos #3 #ProductBlacklog",
"percentDone": 55,
"startDate": "2021-06-01",
"endDate": "2021-06-02",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"resourceId": -681,
"resourceName": "Alejandro Oliva Moreno",
"resourceInitials": "AO",
"diasHolguraWarningSemaforo": 3,
"prioridad": "baja"
},
{
"id": 54683,
"name": "Elaboración de estructura de ventas #4 #ProductBlacklog",
"percentDone": 75,
"startDate": "2021-06-02",
"endDate": "2021-06-03",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"resourceId": -252,
"resourceName": "Artemisa Artemisa Artemisa Artemisa Artemisa Artemisa Cadena Cadena Cadena Cadena López López López López López",
"resourcePhoto": "https://tprede.blob.core.windows.net/200265/tenant/200265/empleados/fotos/1993c63b-3504-445c-a3c4-12cba2adc79f.jpeg?sv=2018-03-28&sr=c&sig=vQbx1WRACPm%2BBtbs4jvdqnDa%2Fc8rr5HEsPlrxHZC%2FbU%3D&st=2021-07-01T14%3A53%3A20Z&se=2021-07-02T14%3A58%3A20Z&sp=rwdl",
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54684,
"name": "Elaborar plan de implementación #4 #ProductBlacklog",
"percentDone": 10,
"startDate": "2021-06-03",
"endDate": "2021-06-04",
"duration": 2.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"resourceId": -681,
"resourceName": "Alejandro Oliva Moreno",
"resourceInitials": "AO",
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 54685,
"name": "Elaboración y publicación de oferta de trabajo #5 #ProductBlacklog",
"percentDone": 100,
"startDate": "2021-06-04",
"endDate": "2021-06-10",
"duration": 7.00,
"durationUnit": "day",
"activo": "N",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 55184,
"parentId": 54675,
"name": "Tarea de Prueba DEMO",
"description": "Prueba DEMO",
"percentDone": 0,
"startDate": "2021-05-25",
"endDate": "2021-05-25",
"duration": 1.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68515,
"name": "una tareita",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68516,
"name": "una tareota",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68517,
"name": "er[heho[jheo[j[",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68518,
"name": "rjrjjr",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 1,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68519,
"name": "Tarea 2 Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2Tarea 2T",
"percentDone": 95,
"startDate": "2021-06-30",
"endDate": "2021-07-02",
"duration": 4.00,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"resourceId": -681,
"resourceName": "Alejandro Oliva Moreno",
"resourceInitials": "AO",
"diasHolguraWarningSemaforo": 3,
"prioridad": "baja",
"subtareas": 1
},
{
"id": 68520,
"name": "Inventario corriente",
"percentDone": 90,
"startDate": "2021-06-29",
"endDate": "2021-07-13", // <===== This is the correct date that I want to show in the Taskboard card
"duration": 88.00,
"durationUnit": "hour",
"activo": "S",
"columnTask": 3,
"diasHolguraWarningSemaforo": 3,
"prioridad": "alta",
"subtareas": 3
},
{
"id": 68536,
"parentId": 68520,
"name": "subtarea 1 de inventario",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68537,
"parentId": 68568,
"name": "Subtarea 1.2",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68538,
"parentId": 68520,
"name": "Subtarea 2",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68539,
"parentId": 68538,
"name": "Subtarea 2.1",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68540,
"parentId": 68539,
"name": "Subtarea 2.2",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68541,
"parentId": 68540,
"name": "Subtarea 2.3",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68542,
"parentId": 68541,
"name": "Subtarea 2.4",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68543,
"parentId": 68542,
"name": "Subtarea 2.5",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68544,
"parentId": 68543,
"name": "Subtarea 2.6",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68545,
"parentId": 68544,
"name": "Subtarea 2.7",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68546,
"parentId": 68545,
"name": "Subtarea 2.8",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68547,
"parentId": 68546,
"name": "Subtarea 2.9",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68548,
"parentId": 68547,
"name": "Subtarea 2.10",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68549,
"parentId": 68537,
"name": "Subtarea 1.3",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68550,
"parentId": 68549,
"name": "Subtarea 1.4",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68551,
"parentId": 68550,
"name": "Subtarea 1.5",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68552,
"parentId": 68551,
"name": "Subtarea 1.6",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68553,
"parentId": 68552,
"name": "Subtarea 1.7",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68554,
"parentId": 68553,
"name": "Subtarea 1.8",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68555,
"parentId": 68554,
"name": "Subtarea 1.9",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68556,
"parentId": 68555,
"name": "Subtarea 1.10",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68557,
"parentId": 68520,
"name": "Subtarea 3",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68558,
"parentId": 68557,
"name": "Subtarea 3.1",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68559,
"parentId": 68558,
"name": "Subtarea 3.2",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68560,
"parentId": 68559,
"name": "Subtarea 3.3",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68561,
"parentId": 68560,
"name": "Subtarea 3.4",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68562,
"parentId": 68561,
"name": "Subtarea 3.5",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68563,
"parentId": 68562,
"name": "Subtarea 3.6",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68564,
"parentId": 68563,
"name": "Subtarea 3.7",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68565,
"parentId": 68564,
"name": "Subtarea 3.8",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68566,
"parentId": 68565,
"name": "Subtarea 3.9",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68567,
"parentId": 68566,
"name": "Subtarea 3.10",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68568,
"parentId": 68536,
"name": "Subtarea 1.1",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal",
"subtareas": 1
},
{
"id": 68569,
"name": "prueba",
"percentDone": 0,
"durationUnit": "day",
"activo": "N",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68570,
"name": "tarea 1",
"description": "Descripcion de tarea 1",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68590,
"parentId": 68519,
"name": "Subt 1",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68591,
"name": "aaa",
"percentDone": 0,
"durationUnit": "day",
"activo": "N",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
},
{
"id": 68593,
"name": "jhi",
"percentDone": 0,
"durationUnit": "day",
"activo": "S",
"columnTask": 2,
"diasHolguraWarningSemaforo": 3,
"prioridad": "normal"
}
]
},
"resources": {
"rows": [
{
"id": -252,
"name": "Artemisa Artemisa Artemisa Artemisa Artemisa Artemisa Cadena Cadena Cadena Cadena López López López López López"
},
{
"id": -681,
"name": "Alejandro Oliva Moreno"
}
]
},
"assignments": {
"rows": [
{
"id": 1,
"event": 54675,
"resource": -252
},
{
"id": 2,
"event": 54682,
"resource": -681
},
{
"id": 3,
"event": 54683,
"resource": -252
},
{
"id": 4,
"event": 54684,
"resource": -681
},
{
"id": 5,
"event": 68519,
"resource": -681
}
]
}
}
But I don't understand what the Gantt component has to do here...
Can you help me to understand please...
Regards
But I don't understand what the Gantt component has to do here...
Can you help me to understand please...
Ah sorry I just saw another post related to the Gantt w/ Taskboard and thought that you use the Gantt project model.
Anyway regardless of the project model you use this is the task data:
"startDate": "2021-06-29",
"endDate": "2021-07-13",
"duration": 88.00,
"durationUnit": "hour"
End date gets recalculated based on start date and duration provided.
88h
is roughly 3.6 days
:
88/24=3.6666666666666665
So Jun 29 2021 00:00 plus 88 hrs (aka 3.6 days) gives Jul 2 2021 16:00.
Then scheduling engine always calculates the end date if the start date and duration are provided. You can remove duration from the data completely. In this case the duration will be calculated automatically from dates.
If you need the duration despite it is inconsistent with start and end dates, then you can use a custom field, for example, myDuration
which will be accessible to your code but ignored by the scheduling engine.