Hello all,
I'm trying to create a validator on all issue types that would run on create, however if there's a way for me to avoid adding the validator to each issue type's workflow, that'd be ideal.
I'm using JWT for the validator, using the Logical validator with the following condition:

And this is the text for the condition:
(count(issuesFromJQL("project = " + %{issue.project.key} + " and issuetype = 'Client Project' and 'Client Project Type' = Implementation and resolution is EMPTY")) = 1 and %{issue.cf17201} = "Yes")
OR (count(issuesFromJQL("project = " + %{issue.project.key} + " and issuetype = 'Client Project' and 'Client Project Type' = Implementation and resolution is EMPTY")) = 0 and (%{issue.cf17201} = "No" or %{issue.cf17201} = ""))All it's doing really is checking the project the ticket is getting created in, if it has a specific issue, a field needs to have its value set to Yes, otherwise it can be No or Blank. This works great as an on create validator on one workflow. But I'm wondering if there's a way I can scale this to be across any issue created without having to add the validator on each individual workflow.
I looked at JWT's automation and I couldn't achieve what I need, and I don't believe native JIRA automation would achieve it either since the issue needs to have been created for something to happen (or an event fired, etc...)
Would a scriptrunner listener work for something like this? Does JWT have this functionality already and I just don't know where it is?
Any help or guidance is greatly appreciated!
Thank you!