I have the attachment ID within the context of an issue (e.g., id: 228845
), and I need to find the corresponding comment ID or obtain comprehensive information about the attachment within a comment context. The comment structure I receive looks like this:
{
"self": "https://sos-team.atlassian.net/rest/api/3/issue/1692568/comment/183850",
"id": "183850",
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "mediaGroup",
"content": [
{
"type": "media",
"attrs": {
"type": "file",
"id": "2f220577-a214-4aec-8953-54dae8542db7",
"collection": ""
}
},
{
"type": "media",
"attrs": {
"type": "file",
"id": "1da161f4-bcd2-4879-93b2-70d4f74c28ca",
"collection": ""
}
}
]
},
{
"type": "paragraph",
"content": []
}
]
}
}
Is there a way to identify the comment associated with a specific attachment ID within an issue context? Alternatively, how can I obtain detailed information about the attachment within the comment context, given that the attachment ID in the comment is different from the one at the issue level?"