Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:57 AM
Hello,
I have a requirement in the change model. Where in Implement UI Action should only be visible when the state is in 'Schedule' and planned start date is the current date or passes.
For example: If the planned start date is today & state is in 'Schedule', Implement button should be visible from today onwards.
Thanks in advance!!
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:05 AM
Hi @Delapan
Add below to the condition of the UI Action:
GlideDateTime.subtract(new GlideDateTime(), new GlideDateTime(current.planned_start_date)).getNumericValue() < 0
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:05 AM
Hi @Delapan
Add below to the condition of the UI Action:
GlideDateTime.subtract(new GlideDateTime(), new GlideDateTime(current.planned_start_date)).getNumericValue() < 0
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.