%{issue.lastComment.author}
issue?.comments!= [] ? issue?.comments[issue?.comments?.length-1].author?.accountId : null
Comments are stored in lists. Documentation on how to work with lists can be found here.
You can access the whole comment by issue.comments[0] which returns an object, issue.comments will return a list of objects.
issue.comments[0]
issue.comments