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: 

Function query specific story / subtasks

Philippe Artaud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2020

Hello Community, 

 

I'm trying to find how to filter : 

All story with specific Label "Toto" that have a due date  > today + 6months ; and all their related subtasks if they have : 

- No Due date set-up or Due date > today + 6months

No need to display the Story if no subtasks meet the criterias.

 

Any help :)

Thanks a lot

Philippe

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jack Brickey
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.
August 24, 2020

this is a rather complex query and will require an addon like Scriptrunner or similar. Do you have such an addon?

Philippe Artaud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2020

I'm trying this but didn't give me exactly what i'm expecting : 

 

issueFunction in subtasksOf("project = \"BSC Technical Debt 2020\"  and labels = RACI_BSC and issuetype = Story  and duedate < endOfDay(180) ") AND status != Closed AND status != "To Validate" AND labels = FPM OR issueFunction in parentsOf(" Labels = FPM AND labels = RACI_BSC AND issuetype = Sub-task AND (status != \"To Validate\" and status != Closed  ) AND (labels = Critique OR Labels = Vitale) ") AND duedate < endOfDay(180)