Hi - I am working on a python script to collect information (time spent) on subtasks (ordered by day). Anyway, once I have a list of subtask ID I make a call like:
https://pragroup.atlassian.net/rest/api/3/issue/121269?jql=121269&maxResults=1000&startAt=0
Most of the time, one of the keys in the JSON that I can follow is ['parent']['fields']['summary'] in order to give me info (name) about the parent story. However for some subtasks there is no 'parent' hierarchy returned.
Why would this not be consistent over all subtasks?
Thanks,
Larry
Hi @Larry Weisberg can we get more details (maybe screenshots) about for example
And one short question... why do you use query
and not just
Thanks @Martin Bayer _MoroSystems_ s_r_o__
I meant to write back a couple days ago. As far as the incorrectly formatted query - this did not make the difference, but I will clean it up at some point. I apparently had incorrectly modified some code that I downloaded which handles accessing the APIs.
It turns out that the problem was with an assumption I had made about how the rest of my team logs their hours. My /issue/ query was based on the results from the /worklog/updated?since= query, and I had assumed (always a dangerous thing :-) ) that hours were only being logged in subtasks, not in stories. However, since there were some story issues with worklogs , these obviously (and correctly) did not have the parent tag.
Thanks for the help!
Larry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, ok @Larry Weisberg , thank you for sharing :)
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.