Check if an attachment was added recently

Use case

This use case is useful to check if the current user has uploaded a attachment during a definite period of time. If you want to make sure that an attachment was added during the current transition, you may want to refer to Check whether an attachment was added during the transition. 


โš’๏ธ Configuration

Jira expression*

Bash
issue.attachments[issue.attachments.length-1].created > new Date().minusMinutes(2)

At least one attachment must has been added in the previous two minutes before executing the transition.

By changing 2 you can increase or decrease the time range in minutes.


๐Ÿ“š Related use cases