Versions Compared

Key

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

...

Code Block
titlerestrict_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.

See also