Can I ask you which SR version you use ? The JQL functions related to Agile only work for the 6.7.7 and above (and I can see you use v6.3), and that is also true for incompleteInSprint function. Try to update your JIRA Agile.