Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 05:31 AM
#1 won't work if the logic is all ANDs and not ORs because it's evaluated separately - a simple example, if you have current.state == 3 and gs.isMemberOf(current.assignment_group) and you separate this into two different actions, the UI action will show any time the state is 3 regardless of whether the logged in user is a member of the assignment group. The second action will also show for anyone who is a member of the assignment group, so those people will see two UI actions and not know the difference.
It also means you are duplicating code in more than one place which becomes harder to maintain over time.