- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 05:59 PM - edited 03-07-2023 07:56 PM
Can anyone help me in how to show RITM number in short description on change request form.
To auto populate Change Request Planned Start Date depending upon the RITM creation date
aAs mentioned in below screen shot the highlighted fields should get auto populate when the User select the option in Catalog Item @Ankur Bawiskar @BharathChintala @Anil Lande @Sumalatha Y @mattystern @SatyakiBose @asifnoor @Pradeep Sharma
as the Impact Business Unit field is refered to a below mention varaible
in the data lookup table when the User selects Group then the Local/Regional CAB field should populate Regional CAB other wise it should populate Local CAB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 03:15 AM
Hi @Arjun Reddy Yer ,
.
In the screenshot above you haven't created any GlideRecord reference for change record, but you are calling a variable called "changeGlideRecord", so it's throwing error in that step of work flow.
If you want to create a change Request along with the Task, You should write code something like this.
var changeGlideRecord = new GlideRecord();
changeGlideRecord.initialize();
changeGlideRecord.short_description = current.number + 'Standard Change Request for Firewall Change Request';
changeGlideRecord.satrt_date = current.created.addDays(11);
/* Populate all the change field values here like this*/
....
....
changeGlideRecord.insert();
For the Local/Regional CAB field, as you said the company is a reference field, there should be some criteria to identify which is the group company and which is not. If you can share us that we can help in writing the logic to populate the Local/Regional CAB fields.
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 07:54 PM - edited 03-10-2023 08:39 AM
1. For Change Request Planned End Date field should be auto populated as 11 days after RITM creation date
as the script is not working which I had written as mentioned in below screen shot @priyasunku @AnveshKumar M @asifnoor @Ankur Bawiskar @Sumalatha Y @Anil Lande @mattystern @BharathChintala
2. To auto populate the Local/Regional CAB field according to the User selection of Company Field on Catalog form when the Comapny name conatins Group then it should populate as Regional CAB other wise it should populate as Local CAB as the Company field is Look up data reference table as mentioned in the screen shot when the User select Company field
the Local/Regional CAB field is String Type
Company field Type: Lookup Select Box
and the field is designed as mentiond in below screen shot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 03:15 AM
Hi @Arjun Reddy Yer ,
.
In the screenshot above you haven't created any GlideRecord reference for change record, but you are calling a variable called "changeGlideRecord", so it's throwing error in that step of work flow.
If you want to create a change Request along with the Task, You should write code something like this.
var changeGlideRecord = new GlideRecord();
changeGlideRecord.initialize();
changeGlideRecord.short_description = current.number + 'Standard Change Request for Firewall Change Request';
changeGlideRecord.satrt_date = current.created.addDays(11);
/* Populate all the change field values here like this*/
....
....
changeGlideRecord.insert();
For the Local/Regional CAB field, as you said the company is a reference field, there should be some criteria to identify which is the group company and which is not. If you can share us that we can help in writing the logic to populate the Local/Regional CAB fields.
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 05:46 AM - edited 03-09-2023 06:40 AM
it's not working as the below script is not executing required to auto populate Planned End Date field on Change Request form @AnveshKumar M @priyasunku @asifnoor @Ankur Bawiskar @Sumalatha Y @Anil Lande @mattystern @BharathChintala
and Company field Type: Lookup Select Box
and the field is designed as mentiond in below screen shot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 08:41 PM
Hi @Arjun Reddy Yer ,
Can you send the screenshots for properties of the workflow and create task activity like the one below.
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 06:16 AM
Please find the screen shots as per the design of the workflow