/
Limit possible resolutions based on issue type

Limit possible resolutions based on issue type

Problem

You want to limit the possible resolutions in the Resolve issue screen according to issue type.

For example, if the issue type is New Feature or Improvement, you want to remove Fixed, Won't Fix, Cannot Reproduce from the list of available resolutions.

Solution

Create the following script and associate it with the main Live Fields configuration on your project.

restrict_resolutions.sil
string[] issueTypes = {"New Feature", "Improvement"}; string[] bugResolutions = {"Fixed", "Won't Fix", "Cannot Reproduce"}; if(elementExists(issueTypes, issueType)) { lfRestrictSelectOptions("resolution", bugResolutions); }

The above SIL™ script includes the lfRestrictSelectOptions function used in Power Scripts™ Live Fields. It allows you to limit options in select lists for any field or issue type.

 

Related content

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.