Copy incident with form variables to new incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 12:28 PM
When I copy an Incident with form variable the variables are not being copied to the new incident
Original
Newly copied Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 12:51 PM - edited 10-16-2024 12:55 PM
You will need to post more information I believe to get assistance here.
tips-on-asking-question-on-community
How are you copying an incident. You'll need to include the records in the 'sc_item_variables_task' table where 'task' contains the sys_id of the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:06 PM
Using the Copy Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 03:16 PM - edited 10-16-2024 03:17 PM
I see that the OOB UI action named 'Copy Incident' that it references code in the 'IncidentUtils2' script include, and that extends the 'IncidentUtils2SNC' script include. And in there is the 'copyIncidentRelatedLists' method that I believe should work, include the records in the 'sc_item_variables_task' for the incident. You could override the method to add logic to copy records in the sc_item_variables_task table.
However, I see there that there is a system property named "com.snc.incident.copy.related_lists", and I see OOB that the
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 04:50 PM
How/where do I add the records in the 'sc_item_variables_task' for the incident.