Auto populate start and stop times from MI tickets to its child PTASK tickets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2023 06:41 AM
In a Major Incident we have a "Event Start Date/Time" and a "Event End Date/Time". We are being asked to this data to auto populate or be filled in automatically when opening a PTASK ticket. In a PTASK ticket, there is a window where you can enter an Major Incident Number. How can the start and end times auto populate when the Major Incident number is entered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2023 08:54 AM - edited ‎12-29-2023 09:01 AM
Hi @divyal09,
Write a BR[update] on table [ problem_task ], read the major incident data and copy to ptask record ( using current object ).
Replace the correct field name for event start/end date time and parent column with correct field name referring the major incident field.
Ideally, PRB has INC reference and PTASK has PRB reference. So if PTASK can get the incident data using the dot walking.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 12:44 AM
Can't we do this using client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 01:28 AM
No, as task need to update first in DB and then it come to task level. BR is only and good way to do this.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 04:20 AM
Yes we can, refer the point 1 explanation by @Amit Verma, you need to write on change client script ( with script include ) or you can write all glide code in client script only..
The difference is
1) the BR will update data after you update ( Save ) INC number on ptask. Same refer by @Dr Atul G- LNG .
2) the client script will fill the event value based on INC change then you have save the form.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution