Forums

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

Filter to pull subtasks when status of parent in "Seeking Approval"

Michelle Larson
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 Leaders.
May 23, 2018

I am trying to get a list of subtasks that are in open or reject only when the parent is in "seeking approval" I tried the following but keep getting errors on it. (I do have scriptrunner)

 

Error in the JQL Query: Expecting ')' or ',' but got 'TCRM'. (line 1, character 141)

 

project = TEST AND issuetype = Enhancement AND status = "Seeking Approval" AND issueFunction in subtasksOf("project = TEST AND issuetype = "TCRM - Dev Approval" AND status in (Open, Rejected)")

1 answer

1 accepted

1 vote
Answer accepted
Udo Brand
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 Leaders.
May 23, 2018

Use single quotes within double quotes or vice versa

 

project = TEST AND issuetype = Enhancement AND status = "Seeking Approval" AND issueFunction in subtasksOf("project = TEST AND issuetype = 'TCRM - Dev Approval' AND status in (Open, Rejected)")
Michelle Larson
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 Leaders.
May 23, 2018

This does not give me an error however it is not returning the subtasks that are either open or rejected when the parent is in seeking approval

Michelle Larson
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 Leaders.
May 23, 2018

I also tried this and it still does not return anything

 

project = TEST AND issuetype = 'TCRM - Dev Approval' AND status in (Open, Rejected) AND issueFunction in parentsOf("project = TEST AND issuetype = Enhancement AND status = 'Seeking Approval'")

 

However if i  just use the sub queries they each return tickets.

Udo Brand
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 Leaders.
May 23, 2018

Is Enhancement a subtask and "TCRM - Dev Approval" the parent issue? If not try:

 

project = TEST AND issuetype = 'TCRM - Dev Approval' AND status in (Open, Rejected) AND issueFunction in subtasksOf("project = TEST AND issuetype = Enhancement AND status = 'Seeking Approval'")

Michelle Larson
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 Leaders.
May 24, 2018

That worked great thank you.

Ryan An March 13, 2019

super helpful!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events