On Create: Validator to confirm if Summary is a duplicate

Megan D March 28, 2024


I want to create a validator script when a reporter tries to create a new issue. It should query the Project and validate that the Summary is unique.

-If it IS unique, then the transition is allowed.

-if it IS NOT unique, add a warning to the Summary field that they need to locate that particular Issue instead.

Can anyone help me with this? I've tried this with no luck, but it's probably very wrong:

def summaryResult= sourceIssue.summary +"New Request"

if (issue.getSummary()== summaryResult){
return false


0 answers

Suggest an answer

Log in or Sign up to answer