Convert Incident to an SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 07:55 AM
Hi,
Does anyone have detailed instructions on converting an INCIDENT to an SCTASK. This change would show the incident record as a related record on the SCTASK.
Can any help on this.
Thank you in advance!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 11:39 AM
Got it, seems feasible, one last question, we don't want sc_task to be associated with any other record, right
Conventionally catalog tasks are associated with Req items.
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 09:05 PM
Hi Aman,
Thank you.The above code is working fine.
I have few queries:
1) We want sc_task to be associated with Req items.
2) Just one thing, you need to create one incident ref field on sc_task table -> Sorry, I did not get this??
3) Can we cancel the incident once SC Task created??
Thank you so much for your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 10:09 PM
1. I think that should be alright, but for establishing this relationship, you need to decide first which RITM you want your sc_task to associate with, that can be little tricky, if you are planning to automate this.
2. In the requirement, you mentioned "This change would show the incident record as a related record on the SCTASK." For that you need to build relationship between sc_task and Incident. If you want show it as related list, that can also be easily done by configuring related list(which gets auto-created once you create incident ref field on the sc_task form)
3. I think you can cancel it, just need to add few lines of code in the UI action, but do remember this will be an irreversible step, so make sure the UI action is accessible to admins only(or higher roles).
for this you can check requires role tab, down the ui action form
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-30-2022 08:13 AM
Hey,
Can you confirm, if your issue was resolved?
If yes, please mark correct and close the thread, will be helpful to others š
Aman Kumar