Field code
%{issue.components}
Field code
issue?.components?.map(c => c.name)

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.

Read

Returned valueA comma-separated list of component names.
Output data type

TEXT LIST

Example outputWeb Site,Authenticator,Statistics

To write this field, use Component/s ID.