Create a Problem from Incident UI action issue copying INC assignment group

davematz
Giga Expert

I am unable to get my NOW Learning task to complete successfully.

I need to create a new problem from an incident with all necessary information.  The following fields should be copied from an incident when a new problem is created from an incident: Configuration item, Priority, Assignment group, Short Description, Description.

The OOTB has all configured except the assignment group.  I've tried modifying the Script for the Create Problem (incident table) UI Action.  I added a line:

prob.assignment_group == current.assignment_group; 

this gives me an error "Expected an assignment or function call and instead saw an expression.  I understand the error message, but don't know what I needed to do to get the correct answer to solving this task.

Please instruct me on what the correct answer is and why so I can understand and learn.

Thank you

15 REPLIES 15

Kartheek Kumar
Giga Contributor

Try this 

after prob.assignment_group = current.assignment_group;

add  prob.update();