Hi @[deleted],
Below Behaviour script may give you some idea
def labels = getFieldByName("Labels")
def lbls = labels.getFormValue() as String
if(lbls.contains("label name")){
getFieldByName("Epic Link").setFormValue("JRA-3")
}
Note: you need place this script for Labels field
BR,
Leo
tried with the below script still it is not working
def labels = getFieldByName("Labels")
def lbls = labels.getFormValue() as String
if(lbls.contains("Test")){
getFieldByName("Epic Link").setFormValue("DONE-12")
} else {
getFieldByName("Epic Link").setFormValue("DONE-14")
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Leo
Epic link is now updating with the below script.
def labels = getFieldById(getFieldChanged())
String lbls = labels.getValue() as String
if(lbls.contains("Test1")) {
getFieldByName("Epic Link").setFormValue("DONE-12")
} else if(lbls.contains("Test")) {
getFieldByName("Epic Link").setFormValue("DONE-14")
}
Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted]
If you can open the Epic issue and add issue from that page, it will be linked to that particular Epic automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lenin Raj
Thanks for the reply.
What i mean is when user creating a story it should automatically populate required Epic in Epic Link field depends on Label selection on create screen.
Thanks,
ch
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.