I tried with behaviours from script runner but no luck :-(
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???
It looks like you're new here. Sign in or register to get started.