Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

You want to hide specific issue priority types for certain projects when creating or editing new issues, or on project workflow transitions screens.

For example, you want to remove issue priorities `Blocker` and `Trivial` from the list of the available Priority options in the currently configured project.

Solution

By using lfRestrictSelectOptions SIL™ routine we'll easily manage to hide some issue priorities for certain projects. All you have to do is to create the following script and associate it with the main Live Fields configuration on your project, as described here. This way, the issue priorities will be hidden in create/edit/workflow transitions screens.

restrict_priorities.sil
Code Block
string[] forbiddenPriorities = {"Blocker", "Trivial"}; //the array of the priorities to restrict
lfRestrictSelectOptions("priority", forbiddenPriorities);

Note

Pay attention to the parameters passed in lfRestrictSelectOptions routine. You have to use quotes ("priority"), in order to pass in the actual field label name for the current screen.

Otherwise, SIL™ Interpreter will actually get retrieves the priority from the current issue.

Table of Contents