- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 08:32 AM
I have a requirement to create 21 tasks for different teams, I am using a workflow for this. These tasks all have to be completed at different times, before a set end date. I have read through all the different posting here and have tried most of them to no avail. Is it possible to use a GDT script in the create task script area to subtract days from the u_release_end_date field and then populate the u_release_plan_end field? Or does this have to be done in a business rule?
task.u_release_end_date = current.work_end;
var gdt = current.u_release_end_date.getGlideObject();
gdt.addDays(-2);
task.u_release_plan_end = gdt;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 11:03 AM
task.u_release_end_date = current.work_end;
var gdt = new GlideDateTime(task.u_release_end_date);
gdt.addDays(-2);
task.u_release_plan_end = gdt;
This is what caused it to display. Thank you so much for the help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 11:09 AM
Please mark answer correct to close out the thread.