Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Create rules for automatic Story and Subtask creation

Hi,

I have aproblem using JIRA automation capability. I want to create a rule so that when we create a new issue it automatically create the story from it and in that story it created the predefined subtasks. 

I could create this rule so that when I create an issue in JIRA and put in the summary for this issue manaually, the issue is created. However, wehn I trigger the rule that was created before, it creates a new story but it adds the subtasks that were part of the rule I created to the manual issue that I create. So what happens on the Backlog, I get two stories: one without subtask created when I trigger the action and the other that was manually created by me which holds all the subtasks! 

How I can define the automation rule so that only 1 story being created with all relevant subtasks when I trigger the action?!

Thank you for your help

1 answer

1 accepted

2 votes
Answer accepted
Tim Kopperud
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.
Oct 05, 2023

Hi @Ardalan Sepehri 

You need to branch the rule using either All created issues or Most recently created issue. Move all your sub-task creations into that new branch.

TimK.

@Tim Kopperud Thanks for the quick response!

HOwever, I have tried it before and it deson't work. please see the screenshot:

JIRA.JPG

Tim Kopperud
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.
Oct 05, 2023

Hi @Ardalan Sepehri 

You must add at least one component (see yellow marking below) in the branch to get rid of that info. Like this:

branch.png

 

All subtasks you want in the new Story should be located in that new branch. You can drag-and-drop them into that branch if they still exist in the main "thread". 

TimK.

Hi @Tim Kopperud ,

Sorry for my late reply as I was so busy recently!

Unfortunately the solution you proposed doesn't work meaning still it created a new story but put subtasks under same story which was created using create a new issue. So, basically I see two stories, one automatically triggerred when I call it from actions menu and second one which was manually created by me

What do you think is the root cause?

Thanks

OneDriveError.JPG

Tim Kopperud
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.
Oct 11, 2023

Hi @Ardalan Sepehri 

You rule branches to Current issue, not All created issues. Se my image in the orginial answer. 

Current issue is always the issue that "flows" into the rule when it starts, and it will be that way during the whole rule execution. You therefore need to change the issue context away from current issue into the newly issue created. 

TimK

Like Ardalan Sepehri likes this

@Tim Kopperud Awesoe, Thanks! so is it possible to automatically delete the issue created as now I see a new story with all subtasks is created but the issue which was manually created is still showing up in the backlog!?

Tim Kopperud
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.
Oct 11, 2023

Hi @Ardalan Sepehri 

Yes, you can delete the issue from automation. 

If the original issue uses the same workflow as your Epic I might suggest you instead change the issue type using the Edit issue action. You don't need to create a new issue for this. Then you will keep all relevant history, even that it was nad when it was converted to Epic. But it's based on your exact needs, if want to "have a fresh start" on the Epic or if you want to keep the history data. 

TimK

Thank you so much @Tim Kopperud  really appreciated your help!

Like Tim Kopperud likes this

Suggest an answer

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

Atlassian Community Events