- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 02:46 AM
I have field u_date and need to check if the current date is greater to u_date by 15 min.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 04:26 AM
Okay. Then simply make the BR to display query instead of after insert.
Then your Br executes whenever you open the incident. And if the incident u_date+15 minutes is more than current date, then you can show the message saying
gs.addInfoMessage("Current date is greater than u_date");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 02:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 02:43 AM
The 3rd log is missing. can you check and share that as well. If that is not coming, then it means there is an error you might see in your logs. Kindly check that.
gs.log("current date/time is "+gd1);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 03:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 03:27 AM
Hi,
So as you can see the logs, your u_date (after adding 15 mins) is 10:02:36
and your current date/time is 09:46:11
Hence it is not entering your if condition.
When the current time crosses the u_date time, then it will enter the if condition.
Mark the comment as a correct answer and also helpful if this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2019 03:58 AM
Hello ,
So How Can I pop an alert once the 15 min is crossed.
if current time is (u_date+15 min) then the user should come to know, an alert or an error message should pop up.
Mark the comment as a correct answer and also helpful if this answers your question.