Jira comments and issue join

Im trying to pull Jira issues and comments from one or multiple projects. Bot the get many comments and issues fields work, but there is no key to merge on that seems to match them together.

This seems to be a pretty common use case that someone would want to complete but as the issue key is not available I am trying to match on an issue ID and a json.issue ID but the outputs to an Enrich 1 is only ever just a map of node 1 even when the IDs match

Hey @GP2000 here’s the quickest way to stitch comments onto their issues:

  1. Flatten the comment output
  • After your “Get Many Comments” node, add a Set node.
  • Create a new field called issueId and set its value to:
{{$json.issue.id}}
  1. Merge by ID
  • Add a Merge node.
  • Connect your “Get Many Issues” into the top input, the Set node into the bottom.
  • In Merge node choose Mode → Merge By Field.
  • Set Field 1 to id and Field 2 to issueId.

So I dont have an issue.id coming from the get many comments node at all - I have {{ $json.id }} that I could refernce, but that is what I have been referencing downstream anyway.