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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,739 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot