How to get the assignment group from the Standard Change Template and use that as the same assignment group in the Standard Change Proposal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 07:30 PM
Hi All,
Seeking assistance how to get the assignment group from the Standard Change Template and use that as the same assignment group in the Standard Change Proposal?
That CAB Approval assignment group is in the template and I want to get that same group and use it to the Proposal assignment group
Thanks for the help in advance.
Regards,
Ramel
- Labels:
-
Change Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 10:52 PM
I guess you can't set that because it shows the default values which you have set in
Standard Change Properties
Navogation Path:
Change ---> Administration --->Standard Change Properties
It's because these values are already set like
Short Description - Include a title for your change no greater than 100 characters i.e you see it in every standard change template you create under Change Request Values.
Mark my ANSWER as CORRECT if it served your purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 10:59 PM
However if you just want Assignment Group to appear in Change Request Values then you can do one thing that is
Configure Form Layout ---> And Under Change Request Values section add Assignment Group from Available to Selected and once it is saved it will appear below and your objective is achieved of showing the value.
Mark my ANSWER as CORRECT if it served your purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 11:34 PM
Hi CreativeThinker,
Thanks for the response. I do not want to add the Assignment Group field in the Change Request Values section as that is already available in the Standard Change Proposal section as below:
What I wanted to achieve is when proposing a new template, there is a Change Request Values field that is using a template and one of the fields in the template is the 'assignment group' as shown below:
So whatever group they put in the assignment group for the proposal template, I want to get that value and pass over to the 'assignment_group' in the Standard Change Proposal.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2018 08:13 PM
So I was still struggling to have this completed. I decided to add use approval user activity in the workflow instead of setting the assignment group. Here's my script:
answer = [];
var groupID = [];
var manager = [];
var objUser = new GlideRecord('std_change_record_producer');
objUser.addQuery('std_change_proposal', current.sys_id);
objUser.query();
while (objUser.next())
{
var regexMatch = /assignment_group=(.*?)\^/.exec(objUser.getValue('template'));
if (regexMatch && regexMatch[1]){
groupID.push(regexMatch[1]);
}
}
var groupGR = new GlideRecord("sys_user_group");
groupGR.addNotNullQuery('manager'); // Only get groups with managers.
groupGR.addQuery(current.manager, 'sys_id');
groupGR.query();
if (groupGR.next()) {
manager.push(groupGR.getValue('manager'));
}
answer = manager;
The issue on the above script is I cannot query the correct group/group manager in the Change Request values like in the below sample. It should return the manager of the Database group that will then be the next approver. Can anyone check my script on what I am missing on the sys_user_group query.
Thanks a lot.