Solved

Change - Scheduled dates

  • 19 May 2023
  • 1 reply
  • 75 views

Userlevel 4
Badge +12

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.

icon

Best answer by Mandrews2308 22 June 2023, 16:27

View original

1 reply

Userlevel 1
Badge +1

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