/
Limit sub-tasks based on issue type
Limit sub-tasks based on issue type
Problem
You want to limit sub-tasks based on issue type. For example, if issue type is New Feature or Improvement, we want to remove from the list of available sub-tasks the following one: Sub-task (we'll allow only other types of subtasks, never the standard one)
Solution
By using lfRestrictSelectOptions SIL™ function we'll easily manage to hide some sub-task issue types 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 on the Live Fields page.
restrict_subtask.sil
//Note: you may need to check for the screen (or put the conditions we run over with)
if(argv["screen"] == "create-subtask") { //only on that screen
string[] issueTypes = {"New Feature", "Improvement"}; //the array of the Issue Types
string[] subTasks = {"Sub-task"}; //the array of the Sub-Tasks to restrict
if(elementExists(issueTypes, issueType)) {
lfRestrictSelectOptions("issueType", subTasks);
}
}
That's it.
, multiple selections available,
Related content
Limit possible resolutions based on issue type
Limit possible resolutions based on issue type
Read with this
Automatically create sub-tasks on 'Development' issues
Automatically create sub-tasks on 'Development' issues
More like this
Create a sub-task automatically based on custom field selection
Create a sub-task automatically based on custom field selection
More like this
Hide specific issue types for certain users
Hide specific issue types for certain users
More like this
Hide specific priorities for certain projects
Hide specific priorities for certain projects
More like this
Create story subtasks and close them when story is closed
Create story subtasks and close them when story is closed
More like this
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.