Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do i automate story creation to be conditional on previous story?

William Linder January 8, 2024

Hi there, I am trying to create an automation that is triggered by an Epic creation. upon creation of the Epic, the first story will be generated (eventually a checklist will be created on each new story).

I have a total of 5 stories per epic I want to be created but not all at once. I am having trouble getting the stories to be created in a sequence based off of the condition of the pervious issue.

The first story and its work must be "done" before the second story is created. I have tried numerous ways to get the second story to be created with no luck. I currently have the automation just creating all 5 stories at once)

I have tried using conditional JQL rules like "If status = done" in order to have that trigger the creation of a new story but it always creates another "and: create a new"

I am new to Automation and maybe I am just overlooking the solution or am overcomplicating things. I also have though maybe this should be broken up into multiple rules instead of a single automation but any help or insight would be greatly appreciated. Thanks!

automation.JPG

Below I attached one of the ideas for how I might get a new story to be created with a  condition but it does not work.

auto2.JPG

1 answer

1 accepted

2 votes
Answer accepted
Rebekka Heilmann _viadee_
Community Champion
January 8, 2024

Hi @William Linder and welcome to the Community!

If I understand correctly, you want a Story created in an Epic, when another Story in the same Epic is "Done".

Therefore I would suggest listening on "Issue transitioned". The most difficult part would be to "filter" for only the stories that should trigger a new Story creation.

It could look something like this:

Screenshot 2024-01-08 171628.png

Do you want the rule to be executed for all Epics in a project or just a specific one? This automation rule cannot distinguish what "Number" Story has been created so you cannot really give the new Story specific field values based on the trigger.

May I ask what the Use Case for the automated creation is?

William Linder January 8, 2024

Thank you for the reply! So yes we will be using this project to track multiple Epics, each Epic will follow the same process with the 5 stories. The Epic represents an in depth process to be followed by the people who will be assigned each story. I did try this method somewhat but after the initial story was transition into the done status the rule did not execute properly. status.JPG

Rebekka Heilmann _viadee_
Community Champion
January 8, 2024

Where exactly does the rule fail? 

William Linder January 8, 2024

"Given parent issue does not belong to appropriate hierarchy. (parentId)" is the error i am getting

Rebekka Heilmann _viadee_
Community Champion
January 8, 2024

My mistake. Now it tries to set the trigger Story as a parent, which doesn't work. You need to set the Parent field like so:

Screenshot 2024-01-08 181757.png

Like # people like this
William Linder January 8, 2024

That works! thank you very much.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events