Auto populate start and stop times from MI tickets to its child PTASK tickets

divyal09
Tera Contributor

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.

5 REPLIES 5

Amit Verma
Kilo Patron
Kilo Patron

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.