Hi,
I am searching for a Script runner Validator in Jira Cloud where the validator should be true only when the issue is linked using a Specific Link Type "Address Requirement" & with inward link which is called "Addresses". And the Linked issues should be either Epic or Story but not any other issue type.
Currently I am using a simple Groovy Script in the Script Runner Validator:
issue.links != null ? issue.links.some(link => link.type.name == "Address requirement") : true
But, using this script I can only check if the link Type is Address requirement. But can't check the issue type or Inward linking.
Can anyone help he in this regards please.