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
‎02-06-2024 01:18 AM
Hi @divyal09
I could think of three ways to do this :
1. Creating a On-Change Client Script on your Major Incident Number field. Inside the client script, you can call a Script Include which could query the major incident and get you the information. This information returned could be used to set the value of your start and end time fields.
2. Using the Auto-Populate feature ( Need to check if this will work or not). Please refer https://www.servicenow.com/community/developer-articles/auto-populate-a-variable-based-on-a-referenc...
3. Making use of After Update Business Rule on the problem_task table to query the incident and get the details.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.