When a user (service desk agent) creates an issue, I have included the 'linked issues' field in the create screen. I want to make sure that the user has entered at least one issue in this field.
I am running JIRA Cloud, and have Scriptrunner available.
I have tried making the field mandatory in the field configuration scheme, but I think this only enforces the link type.
I have tried to set a validator in the workflow - 'Field Required Validator' but there is no 'linked issues' field in the list of possible fields.
I have tried to write a 'Scriptrunner script validator' in the workflow. I have used this expression: (issueLinkManager.getOutwardLinks(issue.id).length) ? true : false
... but this always returns false.
Can anyone help please?