On this page
Use case
This use case is useful to check if the current user has uploaded a attachment during a definite period of time. With Jira expressions it is currently not possible to compare the number of attachments before and after a transition.
Configuration
Jira expression*
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
Use case JWT feature Workflow function Parser functions Label Block a transition if the type of the attached files is incorrect Evaluate custom fields Evaluate the user Make a field required only for stories Make values required in a Select List (cascading) field
If you still have questions, feel free to refer to our support team.