JIRA SERVER

This article shows how to set a default epic on the Destination side.

Introduction

You can set a default epic for all issues received from the other side. With the help Exalate external scripts library this can be done with one single line of code in your Sync Rules.

Source side

The Source side does not need to send some specific data. You don't need to add any new code into the Data filter here.


Destination side  

  1. Upload the DefaultEpic.groovy file to the $JIRA_HOME/scripts directory.
  2. Add the code below to the  Incoming sync(Create and Change processor)

DefaultEpic.setEpic(issue, "Service") // replace 'Service' with the relevant Epic Name