url:
https://openinstitute.org/site/mediadb/docs/showdoc.html?id=modulegoaltaskupdate§ion=modulegoaltask
api url: /site/mediadb/services/module/goaltask/data/101
test url: /site/mediadb/services/module/goaltask/data/AY4SrnMl7bBWCxTjProi
body: {
"comment": "Tesst edit sub task",
"id": "AY4SrnMl7bBWCxTjProi",
"collectionid": "AYMiUaV3EWl95ax-fMKX",
"projectgoal": {
"id": "AY3lOz-4ncSd0pFP_URB",
"name": "Gaurav : fhg test"
},
"taskstatus": 3,
"startedby": 6285,
"startedon": "2024-03-11T09:58:09.209949Z",
"projectdepartment": "AYtIBd3JQDkoZcj1nA70",
"creationdate": "2024-03-11T09:58:09.215933Z",
"completedby": 6285,
"completedon": "2024-03-06T07:43:21.138Z",
"ordering": 611,
"taskroles": "nestedarray",
"taskroledetails": [
{
"notes": "fujhrr",
"actioncount": 3,
"collectiverole": {
"id": 24,
"name": {
"en": "Testing Engineer"
}
},
"collectiveuser": {
"userid": 6285,
"screenname": "Gaurav",
"email": "gaurav@appfoster.com",
"firstName": "Gaurav",
"lastName": ""
}
},
{
"notes": "",
"actioncount": 0,
"collectiverole": {
"id": "AY2o90GhsyYpS6wCkDn0",
"name": {
"en": "Primary Performer"
}
}
}
]
}
Found issue in api for edit sub task:
1. In response we're getting "taskroles" field. It should be "taskroledetails".
2. Task roles are not in good format. Please check that also.
3. If we have multiple roles for any sub task. Please try to edit that task and you'll see some strange response.
Comments