Pulling regular attachments attached directly to an issue is no problem.
When parsing comments though, this is how comment attachments are returned by the API:
____
"body"=>
{"type"=>"doc",
"version"=>1,
"content"=>
[{"type"=>"paragraph", "content"=>[{"type"=>"text", "text"=>"Hi ABC,"}]},
{"type"=>"paragraph",
"content"=>
[{"type"=>"text",
"text"=>
"TEXT ABC?"}]},
{"type"=>"mediaSingle",
"content"=>[{"type"=>"media", "attrs"=>{"type"=>"file", "id"=>"5ac80cf3-82b7-4f59-a015-09dcbc3f18de", "collection"=>"", "width"=>2534, "height"=>266}}],
"attrs"=>{"layout"=>"align-start"}},
{"type"=>"paragraph", "content"=>[{"type"=>"text", "text"=>"Many thanks"}]}]},
___
Only the bold id 5ac80cf3-82b7-4f59-a015-09dcbc3f18de is returned, no filename, no URL and there seems to be no way to access an attachment with the above ID.
How can I get more info from the API about comment attachments?