The CreatorCon Call for Content is officially open! Get started here.

When time worked is updated I want only restrict all fileds except assinment group and assigned to

mania
Tera Contributor

Hi,

 

I have restricted all the fields when before time worked field is updated It is showing like "Please fill the time worked before updating the ticket" But here I am facing one issue like I dont want to restrict Assignment group and assigned to so I want only restricting remaining fields(Except Assignment group and assigned to fields).

I wrote one BR for restrict all fields and attached below screen sorts. 

How to do that can anyone help me on this, It will be helpful.

mania_0-1708589040955.png

mania_3-1708589099261.png

Thanks in Advance!

1 ACCEPTED SOLUTION

Looks like you added the Assignment group and assigned to variables inside the gs.nil move it out of that. Like this if(gs.nil(current.time_worked) || current.time_worked == previous.time_worked && !(assignmentGroupChanged || assignedToChanged))

View solution in original post

6 REPLIES 6

Looks like you added the Assignment group and assigned to variables inside the gs.nil move it out of that. Like this if(gs.nil(current.time_worked) || current.time_worked == previous.time_worked && !(assignmentGroupChanged || assignedToChanged))

Hi @Gustav Aldenbra 

 

I have wrote BR for When time worked field is restricted like "before ticket is updating please fill the time worked field" to restricted to all the fields except assignment group and assigned to fields on Problem form.

But here I used the same code on Incident form Its working fine but in Problem form when I update the time worked field and then click on the 'Fix' button its showing again this error and When I click on 'Fix' and 'Accept Risk' button It is asking again that error so except these fields and buttond remaining all are working fine (Before updating the ticket please fill the fields).

 

Can you please suggest me why because of this is happing. It will be helpful.

 

mania_3-1710150195524.png

 

mania_4-1710150195525.png

 

mania_5-1710150195526.png