Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Actual Start Date - Task

Anna L
Tera Contributor

Hi,

Below is snapshot of task record on request item form. Task is created through a workflow. OOTB, I figure there is no way to set "Actual Start" and "Actual End" gets populated when task closes. Is there a way to automate actual start date update once task is created? Any scripts/suggestions?

find_real_file.png

1 ACCEPTED SOLUTION

Try this



Use gs.nowDateTime() instead of gs.now()





Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

3 REPLIES 3

Abhinay Erra
Giga Sage

Create a before Business rule on the sc_task table


When before insert and update


Script:


if(current.isNewRecord()){


current.<your actual start date field name goes here>=gs.now();


}


if(current.state==3 || current.state==4 || current.state==7){


current.<your actual end date field name goes here>=gs.now();


}



Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response


Thanks Abhinay. This works perfect. One thing, I noted though is my Actual start is being updated with 2 hour from now. Any thoughts, why would this be happening, if start date field = gs.now()




find_real_file.png


Try this



Use gs.nowDateTime() instead of gs.now()





Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response