The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

parent(JqlQuery)

Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2014

issue in parent("assignee = currentUser")

I've been trying to use this but with a custom field. It keeps on returning an error:

“Invalid JQL Query in function: parent”

Is it impossible to use a custom field with this function?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2014

What do you mean by "use with a custom field"?

Are you able to run this query in issue navigator?

Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2014

When I use

issue in parent("*Customfield* is not empty") I get the error. It seems to be only working for system default fields.

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2014

It should work fine. Are you using the custom field name? If so, make sure to escape double quotes if there is space in the name. Something like:

issue in parent("\"Custom field\" is not empty")

If it still doesn't work, are there any error in the logs?

Marc Jason Mutuc
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 3, 2014

Thank you Jobin! It worked. I didn't use \" as the escape since it was indivated in the documentation to use *. Thank you very much for this!