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