Hi @John Diz ,
Can you please try below script for Resolution field in behaviours.
import com.atlassian.jira.issue.resolution.Resolution def resolutionField = getFieldById("resolution") def issueLinkType = getFieldById("issuelinks-linktype") def issueLinkIssue = getFieldById("issuelinks-issues") def resolution = resolutionField.getValue() as Resolution if (resolution.name == "Issue Created") { issueLinkType.setHidden(false) issueLinkType.setRequired(true) getFieldById("issuelinks-linktype").setFormValue("relates to") getFieldById('issuelinks-linktype').setReadOnly(true) issueLinkIssue.setRequired(true) } else { issueLinkType.setRequired(false) issueLinkType.setHidden(true) }
Thanks,
Avinash
The snippet works fine, but it doesn't stop you from submitting on the Resolve screen without the Issue ID!! How can we ensure that the issue ID is entered???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.