Skip to end of banner
Go to start of banner

Hide specific priorities for certain projects

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Current »

We've encountered an issue exporting this macro. Please try exporting this page again later.

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â„¢ routine.

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 routine, 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.


  • No labels