I try to set a validator on transition: allow transition "Start Progress" only if the issue is in Active Sprint using JMWE plugin. I use Groovy script "issue.get("Sprint")*.active". When I test this script, it returns true on the issue in Active Sprint and false for issues in Closed and Future Sprint. But after publishing workflow, the validator doesn't work: issues in Closed and Future Sprints are allowed to make transition.
issue.get("Sprint") actually returns a collection of Sprints: the active Sprint, plus all the closed Sprints the issue potentially belonged to before. To get the active sprint, use:
To create a condition or validator from that, and to be safe, use:
If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events