Copy description from Change Request to Change Task

peggy1
Kilo Contributor

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.

1 ACCEPTED SOLUTION

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:


chg_task_desc1.PNG


chg_task_desc2.PNG


View solution in original post

12 REPLIES 12

Abhinay Erra
Giga Sage

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;


Same suggestion, only that before insert did not work for me for some reason, only after insert with current.update(); at the end.


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.


Indeed strange. Although it is after insert, not after update, but i get your point.