Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can use validator, before create transition

How can use validator, before create transition? please let me know.


3 answers

1 accepted

1 vote
Answer accepted
Leonard Chew Community Leader Dec 12, 2019

What Thorsten suggested, you can also do that with scriptrunner, you'll need to script the condition however.

I have tested it and it works:

Scripted Validator Condition:



Error Message on Screen when you have a summary that already exists (e.g. what the script checks):


@Leonard Chew

This is working Thanks Chew.

Like Leonard Chew likes this
Leonard Chew Community Leader Dec 12, 2019

@Venkatesh Bhureddy , good job!

Just out of curiosity: You were able to get the "getIssuesByJQL()" function to work? Thats a custom function I wrote for more convenience, as I often use jql results in my scripts. 

Hi @Venkatesh Bhureddy ,

as mentioned before this isn't possible out of the box. However, if using an additional app is a valid option for you, you might want to have a look at Jira Workflow Toolbox

It allows you to validate against a JQL query to check if specific tickets already exist (see In your scenario, you would have to check for the custom field value.

Disclaimer: I belong to the team behind the aforementioned app.


1 vote
Jack Community Leader Dec 11, 2019

You cannot. Validators are associated with a transition. Depending on your goal you might consider an automation or scripting addon. Maybe if you describe your requirement we could provide a solution.

Validators, by definition, happen after someone has tried to make a change.  They are there for checking input!

What you are looking for is more of a "condition", which is "can this be done?  If not, don't even let the process start".  When you're creating an issue, you can't do this - you don't have enough information in the workflow process. So there's nowhere to put a condition on create.

Jira does the condition before the workflow, and all it does is check the permission that a person has the right to create issues in that project.

Hi @Jack ,

I am trying to add validator before transition, the main purpose we can stop create issue.

 I need help trying to find a way of stopping an issue being created if there is an open issue with a custom field value selected


Issue 1 is Open and Custom Field = 123

User tries to create Issue 2 and populates Custom Field with '123'. I want the creation to be stoppped with maybe an error message? and dont get created

Jack Community Leader Dec 12, 2019

This cannot be done thru a Validator as it only works on the transition and only assessing the current issue not looking a existing issues.

I’m unsure how to achieve this or if it is even possible. For sure you would require an addon. You might look at Scriptrunner, powerscripts, etc.

Like Nic Brough _Adaptavist_ likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,533 views 22 32
Read article

Community Events

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

Events near you