Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Create Epics and Stories automation after a Initiative is Created

GeeLong February 6, 2024

Hi there - Seeking suggestions for creating a series of Epics and Stories after an Initiative is created manually. 

When an Initiative is created, the following to be created via jira automation 

  • Create 3 Epics and 
  • 6 Stories to be assigned under each these Epics

As a starting point, have setup an automation to create an Epic and Story. There were errors and didn't manage to go further from here.

Below are my observations 

1. Epic and Story were created

2. Parent of Story was not linked.

3. Based on the audit log it appears conditions were not met. 

Screenshot 2024-02-07 181927.png

Rules to create Epic and Story

 

Screenshot 2024-02-07 182605_2_1.pngScreenshot 2024-02-07 182531_3.png


 

2 answers

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2024

@GeeLong -

In your env, Initiative is a parent of Epic right?  What is your issue hierarchy configuration?

Typically, your rule should set story's epic link to the Epic issue key.  For your Epic issue, your rule should set Parent Link using the advanced section with codes similar below

{
"fields": {
"Parent link": "ISSUE_KEY_HERE"
}
}

Hope this helps and please advise us your response on my questions above.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

GeeLong February 13, 2024

Hi @Joseph Chung Yin 

Thanks for sharing. 
Yes. You are spot on the hierarchy I am using. (Initiative - Epic - Story)

Have attempted to use "Parent link" however, an error has appeared. 
screenshot 2023-12-06 164555.png
However, when using this field in the automation, it worked 
Screenshot 2024-02-14 114837.png
Based on your suggestion, how can I apply to a Story? 

Even when I replicate the smart value suggested, the Story created in the automation was not linked to the Epic. 

Any possible workarounds? 

Thanks 

 

Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2024

@GeeLong -

In your automation rule, after the EPIC is created, can you provide the action configuration on how you create the Story?

BTW you cannot use "Parent Link" to establish Story to Epic roll-up.  You can try "Epic Link" in the code.

Lastly, you may need to add the action of "Refresh issue data" either after the Epic is created and before your creation of Story action.  Or try to add the same action for the Story and then update the Story issue to roll up to the Epic.

Please advise.

Best, Joseph

GeeLong February 14, 2024

@Joseph Chung Yin - on Jira it is indicated Epic Link will be deprecated and replaced by Parent based on the cloud version I am using. So using it might not work in the long run. 

As suggested I have added "Re-fetch Issue data" and "Epic Link" in the advanced section, of which came up with an error. 

Screenshot 2024-02-15 114456_2.png

Rule used for Story

Screenshot 2024-02-15 113708.png


0 votes
Megha Rajanna
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2024

HI @GeeLong  Can you check this out

Trigger:

  • When: Issue created
  • Issue matches: Type = Initiative

Conditions:

  • None (or specify any additional conditions as needed)

Actions:

  1. Create issue: Epic 1

    • Summary: [Specify Summary]
    • Description: [Specify Description]
    • Project: [Specify Project]
    • Link to Initiative: {{issue.key}}
    • Store the Epic key in a variable: epic1Key
  2. Create issue: Story 1 (under Epic 1)

    • Summary: [Specify Summary]
    • Description: [Specify Description]
    • Project: [Specify Project]
    • Parent Issue: {{epic1Key}}

Repeat the above steps for creating the remaining Epics and Stories.

Thank you

 

GeeLong February 13, 2024

Many thanks for responding @Megha Rajanna . 

With "Store the Epic key in a variable: epic1Key" I do not have that field in Jira, is that a custom one to be created?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events