Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validator to compare Employee ID from previous issues

Sadath Ali Syed May 7, 2021

Team,

We have employee ID custom field in our project. We want each employee to have one ticket in the project. We want to have a validator to check the employee ID from all previous tickets/issues and display an error - "A ticket already exists with same employee ID". Could you please guide to create a validator that satisfies this requirement. We have JMWE and JSU plugins that we can make use of to create validators.

1 answer

1 accepted

2 votes
Answer accepted
David Fischer
Community Champion
May 7, 2021

Hi @Sadath Ali Syed ,

you can use a "Related Issues Validator" from JMWE:

image.png

However, this assumes the "employee ID" custom field is a Number custom field. If it's a text field, you'll need to adjust the JQL expression to something like:

"employee ID" ~ "${issue.get("employee ID")}"
Sadath Ali Syed May 7, 2021

Thanks a million @David Fischer for providing solution.

Suggest an answer

Log in or Sign up to answer