Skip to main content

We are trying to create a smoother user journey for our technical teams, so have put a change windows start and end times in the description of their tasks using the system fields on the event (pictured below).

System scheduled fields

 

We are able to output the dates successfully using…

"You have been assigned a peer review task for '" + $new.parentEvent.formattedReference + " - " + $new.parentEvent.shortDescription + "' by " + $new.parentEvent.affectedUser.name + ".<br><br><table><tr><td>Start:</td><td>" + $new.parentEvent.scheduledStartDate + "</td></tr><tr><td>End:</td><td>" + $new.parentEvent.scheduledEndDate + "</td></tr><tr><td>Technical Team:</td><td>" + $new.parentEvent.technicalServDept.name + "</td></tr><tr><td>Down time?</td><td>" + $new.parentEvent.downFlag + "</td></tr><tr><td>Description:</td><td>" + $new.parentEvent.richRemarks.content + "</td></tr><tr><td>Remediation:</td><td>" + $new.parentEvent.justification + "</td></tr></table>

 

Change task output

As you can see, we are not getting the time using $new.parentEvent.scheduledStartDate and $new.parentEvent.scheduledEndDate. The wiki lists this as a Datetime field.

Does anyone have any ideas how to get it to include the time?

 

Thanks in advance.

Oddly, I don’t believe a task expression can return the time portion. However, assystREST and ETM will return the time portion. It’s not pretty, but you could add a task in the workflow to trigger an ETM channel that will grab the requisite date and time from those fields  and then update a string field on the parent event that you can then reference in future tasks.

I think this should be raised as an ide to be able to access the time component of the system fields. 


Reply