Problem - State visible only for particular group

nameisnani
Mega Sage

Hi Team ,

 

We have a requirement on Problem table 

 

Ptask - " complete " Ui Action should be only visible to certain group .

Problem - " Resolve" Button should be only visible to certain group . 

 

Example group - ' Sbc_prb_grp'

 

nameisnani_0-1712043519904.pngnameisnani_1-1712043573960.png

 

 

Can anyone please help me with steps and Please provide screenshots .

 

Please provide configure steps and screenshots.

 

Thanks in Advance .....

 

 

16 REPLIES 16

Harish KM
Kilo Patron
Kilo Patron

Hi @nameisnani in both UI Action condition have the below script in place

gs.getUser().isMemberOf('group Name')

Regards
Harish

Hi @Harish KM 

 

Could you please provide me the screenshots , please 

Hi @nameisnani share the condition of your UI Action, I would like to see if there are any existing checks

Regards
Harish

hi @Harish KM ,

 

current.canWrite() && (current.state != ProblemState.STATES.RESOLVED) && (current.state == ProblemState.STATES.FIX_IN_PROGRESS) && new ProblemStateUtils().validateStateTransition(current, ProblemState.STATES.RESOLVED)

 

nameisnani_0-1712075149028.png