Open Denchikc opened 7 years ago
I am also attempting to do that. I am not sure how to insert a variable. The best I have come up with is a manual addition to restrict. I would have to update periodically:
Restrict: "[DateCompleted] > 4/1/2017",
You may have to add a line to app.js to pull the completed date too.
I used the following code to only show the last week of completed tasks.
In config.js (line 20)
'COMPLETED_FOLDER': { Name: 'Completed', Title: 'COMPLETED > ' + moment().subtract(6, 'days').format('L'), Limit: 0, Sort: "-datecomplete", Restrict: "[DateCompleted] > '" + moment().subtract(6, 'days').format('L') + "'" , Owner: '' },
In app.js (line 171 ish) datecomplete: new Date(tasks(i).DateCompleted),
Thank you, this is helpful.
I did, however, take JanVV's fork that has a config item to archive tasks after 'x' days and some other additions.
On Wed, Aug 23, 2017 at 8:41 AM, j-werner notifications@github.com wrote:
I used the following code to only show the last week of completed tasks. In config.js (line 20) 'COMPLETED_FOLDER': { Name: 'Completed', Title: 'COMPLETED > ' + moment().subtract(6, 'days').format('L'), Limit: 0, Sort: "-datecomplete", Restrict: "[DateCompleted] > '" + moment().subtract(6, 'days').format('L')
- "'" , Owner: '' },
In app.js (line 171 ish) datecomplete: new Date(tasks(i).DateCompleted),
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/evrenvarol/outlook-taskboard/issues/19#issuecomment-324376211, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKsCAqDepIMEsxziNyjvzaIX1DCIxSnks5sbEgQgaJpZM4MBc8v .
Hello. Please tell me how to display a list of completed tasks for the current week, or 7 days prior to today What should be changed in this line:
{Name: 'Completed', Title: 'COMPLETED', Limit: 0, Sort: "-duedate, -priority", Restrict: "[Complete] = true", Owner: ''}