I am wondering if anyone could help figure out if this is possible and can help with the text mode code to have a column in a task or assignment report show the plannedCompletionDate minus two days whenever the task name contains "and Approval" to provide a better due date for users to allow two days for task approvals to go through since we can't build in durations for task approval loops once a task is completed.
Thank you!
Solved! Go to Solution.
Views
Replies
Total Likes
IF(CONTAINS("Approval",{name})=true,ADDDAYS({plannedCompletionDate},-2),{plannedCompletionDate})
IF(CONTAINS("Approval",{name})=true,ADDDAYS({plannedCompletionDate},-2),{plannedCompletionDate})
Thank you so much! That appears to be working well for task reports. I had trouble manipulating it to work in an assignment report instead, though.
Would you happen to know how to get that same code to work in an assignment report?
Views
Replies
Total Likes
@WeberJ And I guess if it's possible, it would be even better to show that adjusted due date as a column based on if there is a task approval, if that logic is possible rather than relying on how we name the tasks, which isn't always consistent.
Views
Replies
Total Likes
This is what I ended up using for now in my task report column to reduce due date by 1 day instead of 2 for now:
displayname=(APPROVAL) Adjusted Due Date -1 day
shortview=true
styledef.case.0.comparison.icon=false
styledef.case.0.comparison.leftmethod=approvalProcessID
styledef.case.0.comparison.lefttext=approvalProcessID
styledef.case.0.comparison.operator=notblank
styledef.case.0.comparison.operatortype=string
styledef.case.0.comparison.trueproperty.0.name=textcolor
styledef.case.0.comparison.trueproperty.0.value=e19503
styledef.case.1.comparison.icon=false
styledef.case.1.comparison.leftmethod=plannedCompletionDate
styledef.case.1.comparison.lefttext=ADDDAYS({plannedCompletionDate}, -1)
styledef.case.1.comparison.operator=lte
styledef.case.1.comparison.operatortype=date
styledef.case.1.comparison.righttext=$$TODAY+1d
styledef.case.1.comparison.trueproperty.0.name=textcolor
styledef.case.1.comparison.trueproperty.0.value=d30519
styledef.case.1.comparison.truetext=
textmode=true
valueexpression=IF(ISBLANK({approvalProcessID})=false, CONCAT(ADDDAYS({plannedCompletionDate}, -1)), "")
valueformat=HTML
Views
Replies
Total Likes
Views
Likes
Replies