/
Hide specific priorities for certain projects
Hide specific priorities for certain projects
Problem
If you need to hide specific priority types like Blocker and Trivial when working on new issues or modifying existing ones, or during project workflow transitions, here's a solution.
Solution
To achieve this, use the lfRestrictSelectOptions SIL™ function.
Create the script below and link it with the primary Live Fields configuration on your project (as explained here). This ensures that issue priorities are hidden on the Create, Edit, and Transition workflows screens.
restrict_priorities.sil
string[] forbiddenPriorities = {"Blocker", "Trivial"}; //the array of the priorities to restrict
lfRestrictSelectOptions("priority", forbiddenPriorities);
When using the lfRestrictSelectOptions function, make sure to use quotes for the parameters you provide (for example, "priority"). This way, the field label name for the current screen is accurately passed. Otherwise, SIL™ retrieves the priority from the current issue.
, multiple selections available,
Related content
Forbidding specific priorities for certain projects
Forbidding specific priorities for certain projects
More like this
Enable 'Priority' options based on issue type
Enable 'Priority' options based on issue type
More like this
Hide specific issue types for certain users
Hide specific issue types for certain users
More like this
Restrict sub-tasks based on Issue Type
Restrict sub-tasks based on Issue Type
More like this
Limit sub-tasks based on issue type
Limit sub-tasks based on issue type
More like this
Forbidding users to create some issue types
Forbidding users to create some issue types
More like this