Hi
I am trying to use jql to display only stories that do not have tests as subtasks for it. I am having trouble figuring out how to get it to show subtasks in general. Any helpful links etc would be appreciated.
Thanks
Suhaim, you can user Script Runner to run something like this:
issueFunction in subtasksOf("project = XX AND issuetype = Task AND status = Closed") and issuetype != test
See more advanced JQL you can use with this free plugin: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions
Hi Peter - appreciate the answer, it is close to what I want. With this, it displays the tasks, is there a way for it to display Stories that have subtasks of issueType != test ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should change it to: issueFunction in subtasksOf("project = XX AND issuetype = Story) and issuetype != test
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It returns tasks, bugs, etc of these stories, could I get it to return just the stories?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems like I've missed one " just before ). Please add a " just after the word Story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added that, I think I am not explaining this properly, when I use this, what is returned is a list of subtasks etc of the stories. Not the story itself. I want a list of stories that has subtasks ! = test
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you need it as a filter for a gadget? If not, you could get that information with the Jira API. Can you provide more context for how you want to use the data? may be there is a workaround
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got you, Suhaim. Use this: issueFunction in parentsOf("project = xx and issuetype!=test") and issuetype = story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey Peter/Suhaim
Did your query work?I have to do exact same thing, find stories without test sub-task in it, I used this:
issueFunction in parentsOf("project =XXX and issuetype!=Test sub-task") and issuetype = Story,
this doesnt bring back Stories without test sub-task.
Any help is appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Guys,
This JQL works for me.
project in ("XXX") AND Sprint in openSprints() AND type = Story AND NOT issueFunction in parentsOf("type = \"Test Case Sub-task\"")
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this:
issueFunction not in hasLinkType(Test) AND type = story
returns all tickets of type Story that are not linked to a Test
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sam!
I tried yours but don't get a proper result.
My try...
project = "NOVOSAP PROD" AND component != TM AND issuetype in (Story) AND status not in ("UAT Released", Closed, Descoped, "descoped by requester") AND Sprint not in ("novosap prod sprint 99") AND issueFunction in hasLinkType(Test) ORDER BY due ASC
... results in: Could not find any issue link type with name: Test. Available link types are: Blocks, Cloners, Dependency , Duplicate, Epic-Story Link, Foundation duplicate , Issue split, Parent-Child Link, Parent/Child, Problem/Incident, Process Link, Relates, Sequence
Any idea?
regards Günter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution without a plugin.
Use below query as a Quick Filter from the Board Configuration.
issueFunction not in hasSubtasks() AND issuetype != Sub-task
It will sort out every story which has No or Zero sub-tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.