Block a transition based on sprint information

Use case

Make sure that an issue is not in an active sprint.

This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.


βš’οΈ Configuration

Jira expression*

issue.sprint.state != "active"

The current issue must not be in an active sprint.

Variations

You can easily modify this use case to include/exclude additional parameters.

Jira expression *

issue.sprint.state == "active" && issue.sprint.endDate > =  new Date(new Date().getTime() - 60 * 60 * 24 *1000 * 3)

The sprint end date must not be in the next three days.


πŸ“š Related examples