Showing UI for particular states
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 02:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 02:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 03:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 04:31 AM
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!