Hello
I have a doubt about ACP-420 exam . I can´t find a book documentation for preparing the exam. The only resources is the Atlassian University's training catalog?
You'll likely need to search by id instead of key. Otherwise it compares them as text as explained here.
You can change:
issue.getKey() parentIssue.getKey()
to:
issue.id parentIssue.id
That should then sort them numerically using the query:
ORDER BY "Parent Issue ID" ASC, id ASC
Your search template will need to be a number field now.
There are a few gotchas when it comes to running JQL searches in scripted fields which is all documented here if you run into inconsistency issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.