Create a Problem from Incident UI action issue copying INC assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 12:10 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2020 07:29 PM
Try this
after prob.assignment_group = current.assignment_group;
add prob.update();