Complex Groovy JQL subtasksOf(parentsOf())

Hi

I would like to display in JIRA Agile a task and all its subtasks, in case a person is assigned to one of these subtasks.

I'm trying to run on JQL something like that

issueFunction in subtasksOf("issueFunction in parentsOf("assignee = currentUser()")")

But it seems I cannot combine subtaskOf(parentOf)

Any idea how to achieve my query ?

Cheers

4 answers

1 accepted

Hi Jamie

I don't know what happened / changed in my configuration, But I did not get the error message anymore since this week

0 vote

Works fine, you just can't nest double-quotes like that. Using single quotes for the inner query.

issueFunction in subtasksOf("issueFunction in parentsOf('assignee = currentUser()')")

Hi Jamie

 

Thank you for your answer - Sorry I wasn't clear in my initial request: indeed I've written with single quotes as you proposed

issueFunction in subtasksOf("issueFunction in parentsOf('assignee = currentUser()')")

But as return, I got the following error

com.atlassian.jira.jql.parser.antlr.RuntimeRecognitionException

Yoann

What version of jira and the plugin? Works fine for me.

Hi Jamie

I use JIRA OnPremise v6.2.3

And the version of the script runner plugin?

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
Join discussion

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