Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,467,455
Community Members
 
Community Events
177
Community Groups

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

andreas Rising Star 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.

2 answers

1 accepted

3 votes
Answer accepted
andreas Rising Star 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.

Works - Thank you !

What if a triggering issue is creating an Epic and a Story?  How do we get the Epic link correct on the Story?  Else the trigger simply creates both unlinked.

I'd like to use if assignee in (group a, b c)

then

   Create Epic in assignee's project

   Create Story in assignee's project

 

But in creating the Story I need to know how to link to the Epic just created.

Thank You! This was very helpful

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events