Hello All,
When creating a new story it has to link automatically to an particular Epic.
Thanks in advance,
ch
Hi @[deleted],
Below Behaviour script may give you some idea
def labels = getFieldByName("Labels")def lbls = labels.getFormValue() as Stringif(lbls.contains("label name")){ getFieldByName("Epic Link").setFormValue("JRA-3")}
Note: you need place this script for Labels field
BR,Leo
Hi @[deleted]
If you can open the Epic issue and add issue from that page, it will be linked to that particular Epic automatically.
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,
Hi @Leo
It is not working.
Is it not updating Epic Link field? can you include else part in the script and try to update other epic for testing?
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")}
It looks like you're new here. Sign in or register to get started.