Adding extra parameter (field) in create incident topic block

Suresh Kumar8
Tera Contributor

Hello Developers,

I have a requirement in adding and mapping a new parameter (IMPACT) into Create Incident topic block. I followed the below steps:

1. Duplicated the Create Incident topic block.

2. Added new parameter called impact.

3. Mapped as below in the script provided in topic block:

var incDetails - new sn_itsm_va.VACreateINCUtil().createIncident(caller, short_desc, urgency, desc, cmdb_ci, impact);

4. Added my newly created topic block to Create Incident topic.

Mapping is not working.

 

I have attached screenshots for the same. Request your valuable inputs on this please.

15 REPLIES 15

@Suresh Kumar8 

So it means the input is not taken correctly in script.

what's the name of the input variable?

are you using the correct name? at line 7

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar yes, the input variable is Impact and the backend name is impact.

@Suresh Kumar8 

share the step which is accepting input.

Since your value is not coming, it won't update

what type of input are you asking user? choice or text?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar , Type of input is choice. I have attached screenshot of the script and values for impact.

@Suresh Kumar8 

are the choices shown on topic the correct ones?

please check my below response.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader