Hello!
I want to create a filter for subtasks.
List all not closed Sub-Task of an project that belongs to a specified Filter.
The Subtasks:
project = ITSD AND issuetype = Sub-task AND status in ("In Progress", "To Do")
The Parent:
project = ITSD AND issuetype = "Service Request" AND status in (Open, "in Arbeit", "Wartet auf Genehmigung", Auslieferung) AND (ITSD-Anfragetyp-Helper = "Server bestellen")
how can I do this?
I have tried something like this:
project = ITSD AND issuetype = Sub-task AND status in ("In Progress", "To Do") AND parent in childIssuesOf("project = ITSD AND issuetype = 'Service Request'")
I will get: Unable to find an issue with matching key project = ITSD AND issuetype = 'Service Request'
rg
hansi
Hi Hansi,
do you have the Scriptrunner app? If so, you can do something like that:
project = ITSD AND issuetype = Sub-task AND status in ("In Progress", "To Do") AND issueFunction in subtasksOf("project = ITSD AND issuetype = 'Service Request' AND status in (Open, 'in Arbeit', 'Wartet auf Genehmigung', Auslieferung) AND (ITSD-Anfragetyp-Helper = '
'Server bestellen')")
with plain Jira, you can't have subqueries like in SQL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hansi,
Can you please share how you had combined both the queries?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys, I just learned you can use the "scheduled" trigger to do a JQL Query. All issues returned will be treated as trigger issues. You could then use the "For: Sub-tasks" branch then a status condition to act on their sub-tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was trying to exclude all subtasks from a specific parent key and used the below query. Worked for me.
assignee in (<jira usernames>) AND status not in (Closed, Done, Complete, Resolved, Cancelled) AND project not in (<give project names that you would like to exclude>) AND parent != <which ever parent key you would like to exclude>
This query removed all the subtasks for the parent key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.