You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(config.redirectFilters){for(vari=0;i<config.redirectFilters.length;i++){letfilter=redirectFilters[i];varapplyFilter=true;// Check if the pattern would not be matched by.// Pattern.if(filter.pattern&&timeEntry.description.match(filter.pattern)===null){applyFilter=false}// ProjectID wild card or exact match.if(filter.projectId&&!(filter.projectId==='*'||timeEntry.activeCollabProjectId!==filter.projectId)){applyFilter=false}// Project ID in array.if(filter.projects&&Array.isArray(filter.projects)&&filter.projects.includes(timeEntry.activeCollabProjectId)===false){applyFilter=false}if(applyFilter===true){// Fail if error on billable is set to true and timeEntry is marked as billable.if(filter.errorOnBillable===true&&timeEntry.billable===true){// Fail as billable would have been met by this filter.thrownewError('Filter error on billable.');}// Over-ride values with the target values.if(filter.targetProjectId){timeEntry.activeCollabProjectId=projectid=filter.targetProjectId}timeEntry.issueNumber=issueNumber=filter.targetIssueNumber// Get the new mappings.projectMapping=projectMappings.find((_projectMapping)=>{return_projectMapping.activeCollabProjectId===timeEntry.activeCollabProjectId})if(!projectMapping){// Error target project mapping not found.}projectTasks=awaitgetActiveCollabProjectTasks(projectMapping.activeCollabProjectId)break}}}
The text was updated successfully, but these errors were encountered:
Also add an ignoreIfMatched boolean.
I have a bunch of historical timeEntries that I would tag as "tracked" and I'de like to do a full sync of the month to get anything I missed in the interim.
Would also be a good idea to have.
useExactSummary = true
and overrideBillable = true
Redirect Filter added #1
Has a way to skip entry if filter matched, and deletes previous entry if skipped.
Fixed error with the date time from last commit.
A DEBUG tag will now breakpoint in the time entry processing and filter processing logic.
Maybe something like this (untested).
The text was updated successfully, but these errors were encountered: