I already fix it by this code and it works with me:
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.component.ComponentAccessor
IssueManager im = ComponentAccessor.getIssueManager()
MutableIssue issue = im.getIssueObject("JOL-60")
def count = 0
issue.getSubTaskObjects().each{
count++
}
Great thank you @Fabio Racobaldo _Catworkx_
final Searchsubtasks = "parent = JOL-60"
OR
String Searchsubtasks = "parent = JOL-60"
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.
Hi @Mkurama ,
you can use field parent to do that. Example :
parent = YOUR_PARENT_KEY_HERE
Through the above JQL, you will retrieve all subtasks associated to that parent key.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Fabio Racobaldo _Catworkx_ Thank you for your quick response.
I tried it in script runner to run the query but it return 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you missed an equal and project key should be in uppercase.
parent = \"JOL-60\"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, could you try in search issues first and verify that it works?
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.
project = "Project Key" and parent =Parent Key ORDER BY created DESC
This Query helps from the Issue Lists
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.