Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

User adds a new Issue, Automation creates new Epic for the Issue . How to set new Epic in the Issue?



I'm having trouble with setting Epic Link via Edit issue automation.


For context.

An instance of a Software Project is used for Sales initiatives and Requests to technical departments. With Epics used as Sales initiatives and Tasks as Requests.

If a new Request is related to the existing Initiative, than user creates Task from existing Epic.

But for new Initiatives usually you need to send Request at once. That's why we're trying to add automation by creating Epic if a new Request (Task) is created without linking to the existing Epic.


So in the automation rule we have Task as a trigger and Epic created by Create issue action.

Than I'm trying to use Edit issue action to set newly created Epic in Epic link of the trigger. But all available filling options (Current issue, Parent issue, Epic issue, Trigger issue) do not work in this case.

Any tips how it could be done?


It feels like a very trivial thing, but I'm only starting.

1 answer

1 accepted

0 votes
Answer accepted
John Funk Community Leader Jan 29, 2021

Hi "Alex" - Welcome to the Atlassian Community!

Is this a Next-gen project? Or a Classic Software project? 

Hello John. Thanks for the response.

This is a Classic Software project.

We need advanced settings for access to Issues and few other options that available only in SW projects. That's why we didn't choose Business project or Next-gen project although the goal is to set up purely operation-type processes across several departments of the company.

John Funk Community Leader Jan 29, 2021

I have tried several different tests and can't figure out a way to update the Epic Link for the originally created issue. 

Maybe @Bill Sheboy has some insights.

The other option would be to have it send you and email with the details and you can manually link them. 

Hi @Alex Trebek and @John Funk 

If I am understanding your use case, when an issue is created you want to create an epic and then link the two with epic link.  If that is correct, here is what I did to achieve that:

  • Trigger: issue created
  • Condition: IssueType IN (task, story, bug)   Just some insurance to reduce errors.
  • Action: create issue...
    • Setting the IssueType to epic
    • Copying some fields from the trigger issue (current issue)
    • Setting the Epic Name to something, probably also from the trigger issue (current issue)
  • Action: edit issue using JSON edit under advanced
"fields": {
"Epic Link": "{{createdIssue.key}}"


Best regards,


Like # people like this

@Bill Sheboyyou understood the scenario correctly.

It works! Thank you very much!

Like # people like this
John Funk Community Leader Jan 29, 2021

Thanks, Bill!  I forgot about trying with the JSON edit!

Like Bill Sheboy likes this

Yup, and {{createdIssue}} and {{createdIssues}} solve a lot of rule challenges.

Now...if we could only edit variables after created, and have all the fields in Lookup Issues, and...  ;^)


Like John Funk likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events