{issue.components.id}
issue?.components?.map(c => c.id)
A comma-separated list of component IDs
Components are stored in lists. Documentation on how to work with lists can be found here.
You can access the whole component by issue.components[0] which returns an object, issue.components will return a list of objects.
issue.components[0]
issue.components