I am new to scriptrunner validators and groovy. I would like to create a validator that ensures that the issue is Linked to another issue using "Related to" type of link, and that the linked issue is a specific issue type.
For example, something like this:
if (linked issue exists AND link type is "relates to" AND linked issue is issuetype = "Epic") {
SUCCESS
} else {
Display error: "You must link this issue to an Epic using relates to"
}We are currently trialing Jira and scriptrunner. This capability is paramount to giving us a successful "go head" for using Jira over other products. We are currently using scriptrunner for other capabilities so to be able to do this with as few addons as possible, I would prefer to do this with scriptrunner, while I know this may be easier to do with other addons like JMWE.