How can I create a story with an epic link when an epic is created with Automation for JIRA?

Andreas Knecht Community Champion Mar 20, 2017

I'd like to create a story automatically when an epic is created with a link back to this epic using Automation for JIRA.

1 answer

1 accepted

1 vote
Andreas Knecht Community Champion Mar 20, 2017

So for now you still need to use the 'Advanced block' in create issue to achieve this.  Here's an example rule:

Project automation - Code Barrel JIRA 2017-03-21 09-57-01.png

So:

  • When an issue is created
  • We check that it's an Epic
  • Then we create a story and in the advanced block set the 'Epic Link' of this story to the issue that was just created.

This is what you need in 'Advanced':

{
    "fields": {
        "Epic Link": "{{issue.key}}"
    }
}

 

 

Thank you so much, your answer helped me.

Hi, I'm currently evaluating this addon and am unable to set the epic link using this suggestion. I get the following error:

Unknown fields set during create. Fields ignored -
Epic Link (customfield_10009)
Error creating issue
Operation value must be a number (customfield_12600)

 

Can you help?

So I removed the offending error that caused the automation to not create an issue, but I'm still getting an issue with epic link:

CREATE ISSUE
Unknown fields set during create. Fields ignored -
Epic Link (customfield_10009)
Issues created successfully
CP-52

I guess it might be helpful to note this is what my advanced block looks like:

{
    "fields": {
        "Epic Link": "{{issue.key}}",
        "timetracking": {
              "originalEstimate": "{{issue.fields.customfield_12600}}",
              "remainingEstimate": "{{issue.fields.customfield_12600}}"
        }
    }
}

Nevermind solved it. Epic Link field needs to be on the create screen for this to work.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you