Business Rule to change Due Date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 01:46 PM
Hello Everyone,
We have a current requirement for Due Date on Tasks be set to match a field called Target Date on the Request Item. I've tried different options for Business Rules but none have worked for me so far. Is there anyone who has a proper script for this or knows the best way to achieve this?
Thanks in advance
Gemma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 07:12 AM
@sushantmalsure did you see my reply below...just one small item remaining.
I'm new to this board. How do I close out an issue? Thanks again for the feedback.
Thank you all so much for the help! I used the br you suggested and attached is a screenshot of how I configured when to run, actions and the script. I also had to create a new field Due date. So far the due date is matching target date...Good news!
However now I noticed the request item list is not populating due date..
Do you think I just need another business rule for it? Something like :
current.u_due_date = current.sc_req_item.u_target_date;
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 07:17 AM
Can you clarify what you're trying to do? In your original post, you wanted to copy the RITM Due Date to the Task Target Date. However, in your screenshot you were showing the Due Date on the RITM. The BRs that I suggested would not set the Due Date on the RITM - the expectation was that the Due date there was set some other way and that you then wanted to copy it to the Tasks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 11:18 AM
Just put the same field on both records.
On both our RITM and SCTASK records we have a field called "Due Date" and on both it's the exact same field from "Task" (due_date). This way they're always perfectly matched and no scripting required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 05:23 AM
@Gemma Jacobs If this i solved your issue, can you please mark my answer as correct to close this thread?
how to mark answer correct : In the replies, there are two choices, a button for helpful and a button for correct. Click the appropriate one.
Regards,Sushant Malsure