why i cannot use JQL issuesSubtasks,issuesParents with "AM utils"

after install "AM utils" successfully, i found i cannot use JQL issuesSubtasks,issuesParents.

i want to list all subbtasks of critical parents, my JQL is "issuesSubtasks(priority=Critical)",

and i got an error------- "Error in the JQL Query: Expecting operator but got '('. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. (line 1, character 15)"

AM utils Version is 1.3.6,and we are using jira7

please help me , thanks a lot!!!


5 answers

I think I figured it out.  You have to use the syntax

issues in issuesParents("Priority=Critical")

You can combine that with the rest of the JQL, but you must use the "issues in" format for this.  Also, I had to use issuesParents() when I thought what I wanted was issuesSubtasks(), so try both to get what you want!

Hello, should be:

issuesSubtasks("priority=Critical"). Quotes inside function

Are you the author of this add-on?  I can't get this work either.  Add-on is installed, but adding issuesSubtasks("priority=Critical") to a JQL query gives the error shown.  It's like JQL isn't recognizing the new function and can't handle the parentheses.

Works as Andrey said - JQL should be inside the quotes "",
As you found out in your recent answer.
And I suggest author to provide some more examples to wiki - did same mistake.
Great plugin!)

did you fix this?

not yet, sill waiting for the anwser

For example, this would list all subtasks of PWB-3909 and PWB-2910:

issue in issuesSubtasks("Issue in(PWB-3909, PWB-2910)")

Works well here ;)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

141 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you