- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
07-10-2023 11:07 PM
Hi, I would like to get this context key/value as I need it to track SLAs. Is there a way to do so, rather than manually configuring a button in my playbook workflow to call the `!GetTime` script? Thank you.
07-11-2023 06:23 AM - edited 07-11-2023 06:28 AM
Hi Weijielim,
You can use the general purpose dynamic section and have this on the layout that opens up first when the incident is opened. In this general purpose dynamic section you can have an automation that will then get triggered and check the time for you and set it either in the context data for you or print in the war room. This way you can track when the incident was opened for the first time. Keep in mind you will have to check if the incident has an owner or a participant added. If yes then the incident was already opened before and you don't have to take any action.
07-11-2023 06:36 AM
Hi @weijielim ,
Unfortunately, you cannot set any context only when the user clicks the incident. You can run a field trigger script to set the context of the current time and user information but you need to make the user change that field. I think it is almost the same effort with !GetTime script.
This information is available under access_logs, if it is useful.
cat /var/log/demisto/access_log | grep "GET /incident/load/"
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!