copy change feature should not copy change tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 10:53 AM
Hi All,
I have a requirement to ignore the change tasks created out of workflow(Assessment, Build, Test, Implementation, and Post Implementation Test Results) but copy over the manually created tasks to the new change when 'Copy change' UI action is used on the change request.
I know 'copy change' is a OOB UI action which copies the change attributes along with the related lists configured via sys_property, and it uses ChangeUtil and ChangeUtilsSNC script include functions. But I am lost while tracing the exact function or logic that deal with copying the change tasks. I see 'copyChangeRelatedLists()' function in ChangeUtilsSNC Script Includes, but not really sure what invokes it.
Please help me.
Thanks in Advance,
SD.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 11:04 AM
It is invoked in a processor called "CopyChangeRelatedLists"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 11:09 AM
Hi Abhinay,
Any idea how can we prevent the default tasks created from workflow to be copied from original change record and copy the manual tasks that are created in the original change record??
Thanks,
SD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 11:15 AM
Is there any key to differentiate between both the tasks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 11:53 AM
I think the only way to differentiate between the tasks is only with short description.
The tasks created by workflow have standard descriptions like (Build, Assessment etc.,).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 11:24 AM
In the script Inlcude you already have that condition in place which says to eliminate all the changes tasks that are created by workflow
if ((table == this.CHANGE_TASK) && (srcGr.getValue(this.TASK_CREATED_FROM) == this.TASK_CREATED_FROM_WORKFLOW))
continue;