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.
Thank you @Vikrant Yadav
Do I need to write groovy script for that?
@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.FieldBehavioursimport groovy.transform.BaseScriptimport com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.Issueimport com.atlassian.jira.issue.IssueManager
@BaseScript FieldBehaviours behavioursdef 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")}}
It looks like you're new here. Sign in or register to get started.