Don't allow 'Close' when fixVerions contains the word "next"

Hello. How do I prevent an issue from being Closed if there is 'next' word in FixVerion/s field?


3 answers

Hi e t ,

You would probably need a validation on the Close transition so the transition will only work when these versions are not selected.

You could take a look at the script runner plugin, here are some examples of validations :

Best regards,


This is the way I get the FixVersion.
How do I check if there is 'next' in it? Thanks!
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.Issue
import org.apache.log4j.Category
import com.atlassian.jira.config.SubTaskManager
import com.opensymphony.workflow.InvalidInputException

def fv = issue.getFixVersions()

Conditioned validator using Substitution variables . In this case: %original_fixed_versions% NOT finding next.

Sorry, is this a separate thing from 'Script runner plugin'?

I'm afraid I cannot install anything, but the Script Runner.

So, I need a solution on groovy.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot