- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 02:09 AM
Hi All,
I have created one catalogue item and attached workflow to it.
When submitting the request the RITM will create along with TASK .
When I change CI and Short description from RITM from it is getting reflected on to the task except assignment group .
I have writtent the code as showm below .
The assignment group is not changing when I change in RITM form, The TASK assignement group should be same as RITM assignment group as per my requiremnt .
When creating task along with RITM the assignment group is getting reflected on to the task form but When I change change the assignment group from RITM form it is not getting reflected on to the TASK form.
But all other Configuation Itema and Short description are getting changed when I change on RITM form.
Can anybody help on this.
Thank you .
Jenny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 04:17 AM
Hi Jennifer,
If you want to change the assignment group of catalog task then you have to glide it and update it.
Something like below................
current.configuration_item = current.variables.printer_plotter;
current.assignment_group = current.configuration_item.support_group;
var sTask = new GlideRecord('sc_task');
sTask.addQuery('request_item',current.sys_id);
sTask.query();
while(sTask.next()){
sTask.assignment_group = current.configuration_item.support_group;
}
sTask.update();
Thanks,
Kartik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 02:30 AM
Hi Jenny,
It should work. Could you please share how and when are you setting the Assignment group in the parent RITM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 02:50 AM
Hi Ravi,
I am setting the assignment group when I change the configuration item , the support group should set in the RITM assignment group .
I have used the business rule like when I change the variable configuration item it shoul set in RITM configuration item .
The BR code is below .
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 03:26 AM
Hi Jenny,
When is the business rule running? Seems like the business rule is setting the assignment group after the task is generated. If this is the case:
1. Add logs in the business rule to see if the flow is working fine.
2. If the catalog task generation is in the start of the workflow could you check by adding a 5 sec timer before the catalog task activity.
Also avoid using current.update() in before update business rule as per Service now standards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 02:39 AM
Hi ,
I have used the below code also in workflow ctalogue task, but it is not working when I change the configuration item on RITM form.
task.assignment_group=current.configuration_item.support_group;
Thanks,
Jenny