- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2016 09:58 PM
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?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2016 10:26 PM
Try this
Use gs.nowDateTime() instead of gs.now()
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2016 10:09 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2016 10:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2016 10:26 PM
Try this
Use gs.nowDateTime() instead of gs.now()
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response