Christopher B
2/18/24, 11:06:51 PM EST
Guarav, check in Goal Task for all the API you need: https://openinstitute.org/site/mediadb/docs/showdoc.html?id=modulegoaltaskloadrole§ion=modulegoaltask
Gaurav
2/19/24, 12:48:04 PM EST
Hi Chris,
Today, we have integrated API for task role list. User role, username and the count.
Gaurav
2/20/24, 12:05:35 PM EST
Hi Chris,
Here, we have update on mobile.
1. API integration for add on action to a task.
2. API integration for action log history for task role.
Gaurav
2/26/24, 3:14:00 AM EST
Update the added by with username and date time format for log history.
Harshit S
2/27/24, 2:58:30 PM EST
hi Chris, as right now we have some issues with the APIs, I have some understanding of the java project and can create some of the APIs that Gaurav needs as well, so let me know if I can work on that part as well.
Christopher B
2/27/24, 4:00:32 PM EST
https://openinstitute.org/site/mediadb/docs/showdoc.html?id=modulegoaltaskaddrole§ion=modulegoaltask
All the API should be there: X Add Role to task
X Action add to role
X Action remove from role
X Load Role
X Save Role
X Delete Role
X List all roles on task
Gaurav
3/5/24, 9:41:45 AM EST
Hi Chris,
We have issue in some API's. Please check it when you get time.
If the user role is assigned and we want to update the user role.. it shows error.
url: /site/mediadb/services/module/goaltask/tasksaverole.json
body: {
"collectionid": "AYMiUaV3EWl95ax-fMKX",
"taskid": "AY3Al8AuWwnoKhpIUqR-",
"collectiverole": "7",
"roleuserid": "6285",
"name": ""
}
Gaurav
3/5/24, 9:49:57 AM EST
Here is one more:
When we try to edit the sub task. It response with some bad response.
https://openinstitute.org/site/mediadb/services/module/goaltask/data/AY3Al8AuWwnoKhpIUqR-
response:
taskroles: {}|{}|{}|{}|{}|{}|{"date":"2024-03-04T17:37:39.937Z","actioncount":7,"name":"fijghi","id":"8","roleuserid":"6285","collectiverole":"8"}|{"date":"2024-03-04T17:37:42.928Z","actioncount":4,"name":null,"id":"9","roleuserid":"6285","collectiverole":"9"}|{"date":"2024-03-04T17:37:46.158Z","actioncount":2,"name":"notes test again","id":"5","roleuserid":"6157","collectiverole":"5"}|{"date":"2024-03-04T17:46:08.305Z","actioncount":2,"name":null,"id":"7","roleuserid":"6157","collectiverole":"7"}|{"date":"2024-03-05T14:29:16.631Z","actioncount":0,"name":null,
Christopher B
3/5/24, 9:50:00 AM EST
If you change the role user it will add a duplicate role. I dont see any error
Christopher B
3/5/24, 9:50:54 AM EST
Can you use the mediadb app to test with? I cant read these messages. Send me a url where you are testing
Gaurav
3/6/24, 12:35:12 PM EST
https://openinstitute.org/site/mediadb/docs/showdoc.html?id=modulegoaltaskrolesave§ion=modulegoaltask
url: /site/mediadb/services/module/goaltask/tasksaverole.json
body: {
"collectionid": "AYMiUaV3EWl95ax-fMKX",
"taskid": "AY3Al8AuWwnoKhpIUqR-",
"collectiverole": "8",
"roleuserid": "6285",
"name": "Some note"
}
Issue points:
1. When any role is already assigned and we want to update user role (roleuserid).
then it gives error.
2. If the user role is empty (not selected any). Then we can't hit api with notes only.
Because roleuserid field is required for API's.
3. If the role user is blank and we try to assign it. It works perfectly.