Hi there,
I am trying to get the following scenario to work.
I am trying out the below validators. However, the #2 validation is blocking the transition when some other values are selected in the custom fields.
import com.atlassian.jira.component.ComponentAccessor
import webwork.action.ActionContext
def fieldManager = ComponentAccessor.fieldManager
def issueManager = ComponentAccessor.issueManager
def linksSystemField = fieldManager.getField("issuelinks")
def request = ActionContext.request
def params = request.parameterMap
def issueLinkingValue = linksSystemField.getRelevantParams(params)
def linkedIssues = issueLinkingValue.linkedIssues
def linkedIssueProjects = linkedIssues.collect { issueManager.getIssueObject(it).projectObject.key }
linkedIssueProjects == ["ABC"]
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.