How to populate assignment group of Ctask/ChangeRequest/RITM on incident record assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 11:56 AM
Hello All,
I have requirement to create an incident record based on the faliure response of thrid party. I am using patch method scripted rest Api. As of now I am using static sysid of the assignment group in the code to populate it in incident record.
But I need to populate the value dynamically.
Can anyone provide the inputs and correct my script on immediate basis to resolve the issue ASAP.
Using script:
Regards
Muneera.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 12:19 PM
Hi, where you state the group needs to be populated 'dynamically', what exactly does this depend on\what is the relationship between the required incident group and the change request or change task group?
In your script you can dot.walk an assignment group from one of your returned gliderecords, (as long as the task has an assignment group) eg
incFail.assignment_group = changeNumber.assignment_group;
//OR
incFail.assignment_group = changeTask.assignment_group;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 07:53 PM
Hi @shaik11 ,
Where does the assignment group come from? From the third party or there is a logic to pick up from ServiceNow? Please provide details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 10:24 PM
Hi
Need to populate the same change request/ task assignment group in the incident record from servicenow only.
Regards,
Muneera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 08:20 PM
If that's the case, I believe @Tony Chatfield1 has provided you the answer.