Table of Contents |
---|
...
For the sake of this exercise we will consider that all subtasks need to be closed in order to let an issue to be closed.
Add a new condition
Log in as an administrator and navigate to Administration-> Workflows and edit "Close" transition on the default JIRA workflow. Press `Add` a new condition:
Writing the SIL code
Code Block |
---|
// get all subtasks string s_tasks=subtasks(key); for(string s in s_tasks) if(%s%.status != "Closed") return false; return true; |