Automatically update the Decom date of a CI when the status of the CI changes to Disposed

Bijay Kumar Sha
Giga Guru

I've a Date field on the CI form called Decommissioned Date (u_decommissioned_date). I want to update this date field automatically when the Status of the CI changes to Disposed (44).

How I can achieve this?

2 REPLIES 2

Vinay T K
Tera Contributor

@Bijay Kumar Sha  I think you can write a BR on  Status of the CI changes to Disposed and update the u_decommissioned_date field with current time.

 

If my answer helped you in any way, please then mark it as helpful or correct.

 

brahmandlapally
Mega Guru

Hi

Create a business Rule

Conditions

when:before 

Insert & update

filter conditions:

status_fieldname   changes

Script:

if(Status_fieldname=='Value of option')

{

current.u_decommissioned_date=gs.nowDateTime();

}

 

If you find my answer helpful plz click on Thumb. and click on Correct answer.