Convert Incident to an SCTASK

abdul rajak
Kilo Contributor

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!

9 REPLIES 9

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.

Best Regards
Aman Kumar

I have created one UI action, works as expected.

Just one thing, you need to create one incident ref field on sc_task table.

and add one more line of code below:

add after line 3:

catalogTaskGR.setValue("incident_field_name",current.getUniqueValue());

find_real_file.png

Best Regards
Aman Kumar

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.

 

 

 

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

Best Regards
Aman Kumar

Hey,
Can you confirm, if your issue was resolved?


If yes, please mark correct and close the thread, will be helpful to others šŸ™‚

Best Regards
Aman Kumar