Change Model - Implement button should be visible when the planned date passes

Delapan
Tera Contributor

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!!

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

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.

View solution in original post

1 REPLY 1

Peter Bodelier
Giga Sage

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.