problem with query to find all stories in epics

Hi...I am following the steps found in the scriptrunner doc here https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html but when I try to do issuesInEpics("project = DFWTEAM2") I get the following error:

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

 

what am I missing?

Thank you for your assistance

 

1 answer

1 accepted

1 vote

The rest of the clause?  You seem to be missing "issueFunction in" on the beginning of that.

Hi Nic...thank you for your reply...I was trying to follow the steps under the More Complex Examples section :

More Complex Examples

Find all the stories in an epic, and all their subtasks. With these complex queries it helps to break them down into pieces, so the first step is to find the stories of the epics in a particular project, let’s say the JRA project.

issuesInEpics("project = JRA")

Now save that as a filter, called for example, Stories in Epic.

 

I guess I just need to save the filter like that (without actually executing it) since it will be used later on as part of the more complex filter....thank you for your quick assistance.

Another quick question though...is there a way to find all stories in epics in my instance (without restricting it by projects or status or any other criteria)

 

Thank you

No, you need to use the simple examples to form a valid clause first.  The advanced line you're looking at is different to all the other usages, and it looks like a mistake in the doc to me, as it doesn't work.

You could try a clause that is always going to return everything like "issue type is not empty"

got it...thank you Nic

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

58 views 0 3
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