The info is in issue.fields.parent in issues of type sub-issue, such as Sub-task
jql = "project = MYPROJ and type = Sub-task"
issues = jira.search_issues(jql)
log.info("Found first %s subtasks" % len(issues))
for issue in issues:
print "Parent %s of subtask %s" % (issue.fields.parent, issue.key)
Not sure it helps:
in the instance I'm working on it is the field:
"issue.fields.customfield_13272"
I don't now, whether this is a reserved field by atlassian, or it's a matter of implementation.
I took an Issue I knew it's a Sub-Task an knew its parent key. Made a rest-call in Browser and searched for the key in the resulting json :)
BR,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the issue.getParent call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't work, The object has no attribute called getParent, Does it work with certain version of Jira library or do you the api call ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's the API call - I'd expect any python library to expose it, as it's pretty fundamental.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys,
Did you get any way to achieve this ? or anyone can give a suggestion on this ?
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.