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

0 votes
Accepted answer

Hi Jamie

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

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,664 views 18 21
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