...
Log in as an administrator and navigate to Administration-> Workflows and edit "Close Issue" transition on the default JIRA workflow. Press `Add` a new condition:
Now add a '(k) SIL condition':
The following screen appears:
Writing code
The following code (also shown above) does all the magic:
...