You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Use case

Return the mimetypes of the attachments.

Expression

Create and configure a Smart field using this expression in Jira expression parsing mode:

issue?.attachments?.reduce((result,att) => 
                result.set(att.mimeType,""),
            new Map()).entries().flatten().filter(entry => entry != "")