- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 02:38 PM
Hi,
I have been trying to auto populate description value from a Change Request to Change Task. Not having any luck Been trying to use
Business Rules.
At present, we have a standard change template that has change tasks automatically populated through Execution Plans.
I would like all the change tasks to have the description field to be the same as the parent Change Request's description upon creation of the tasks.
I've read different posts here but most are scripts for workflow. But I'm not using a workflow. Is there a Business Rule script/set up I could use to do so?
Your help will be greatly appreciated. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 03:30 PM
Hi Peggy,
Your script seems to be fine.
Are you sure, the 'Description' value from Change request does not copy over AFTER you insert the Change-Task record ?
I've just tried the below in my personal instance and working as expected:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 02:41 PM
Create a before insert business rule on change_task table
when: before insert
conditions:change_request is not empty
Script:
current.description=current.change_request.description;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 02:53 PM
Same suggestion, only that before insert did not work for me for some reason, only after insert with current.update(); at the end.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 02:56 PM
Well that is wierd. But using after update on the current record is not recommended and current.update() in a business rule script will have performance issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 03:00 PM
Indeed strange. Although it is after insert, not after update, but i get your point.