Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Showing UI for particular states

Southsayer
Tera Expert

Hi, 

 

I have a requirement to show Close Incomplete UI action when state is either of 1, 10, 3 or 24 

My UI action is visible for first 3 but when I am changing state to 24 (suspended), I am unable to see the UI action

 

this is the condition I wrote, it is an OOB Close complete for HR case table. This UI action was only visible for 18th state so now I edited it and added 3 more states. 

 

(current.state==18 || current.state == 1 || current.state == 10 || current.state == 24) && !current.sla_suspended && new hr_Delegation().isAssignedOrDelegated(current)

 

thank you in advance

snowman

3 REPLIES 3

Mark Manders
Giga Patron

When you move your ticket to 'suspended' what does it doe with the 'sla_suspended' field on your record? It sounds to me that it would be logical to also suspend the sla on the suspended state and in that case, your !current.sla_suspended condition is in the way.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Anubhav24
Mega Sage

Hi @Southsayer ,

Could you please validate these conditions , these conditions are written with AND operator which might not be returning favorable results to show the UI Action.

Please mark helpful/correct if my response helped you.

Ayushi12
Mega Sage

Hi @Southsayer 
Please validate the condition written in AND after moving state to suspended (!current.sla_suspended && new hr_Delegation().isAssignedOrDelegated(current)) 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."

Thanks!