Hi everyone.
I want to know how to load ticket details when user enters the "epic link" in a story issue type in Jira administrator using ScriptRunner plugin.
Hi @Tharindu Randipa Using Scriptrunner behaviour you can fill tickets details when user enters Epic Link field value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tharindu Randipa Yes, for this you need to add Server side script for Epic Link field in Behaviour.
Sample Script :-
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.IssueManager
@BaseScript FieldBehaviours behaviours
def epicLink = getFieldById(fieldChanged)
def epicLinkValue = epicLink.value as String
def summary = getFieldById("summary")
if (epicLinkValue) {
if (epicLinkValue.split(':').last() == 'VTPC-20') {
summary.setFormValue("Default Value")
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.