Forums

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

How to create new tasks to with sub-tasks when story is created

Michał Pacewski April 3, 2024

Hey,

I am trying to achieve this:
1) When story is created - 
- Create or clone as a new task (type QA story) (this one works)
- Assign new QA story to epic QA (Does not work, field parent I have no idea is works corretly)
- Create new subtasks (Manual tests) to the new tasks - it is only creating subtasks to the trigger one. When I try do separate automation to add subtasks to new created or clone issue - it does not work (it works when I create manualy QA tasks, but not when created by automation)
Screenshot_28.pngScreenshot_29.png

2 answers

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
April 3, 2024

Hi @Michał Pacewski 

The create subtask action is based on the rule scope for which issue is "current".

To create the subtasks as children of the newly created, a branch is needed.  For example:

  • action: create issue, for a task
  • branch: to most recently created issue
    • action: create subtask

Kind regards,
Bill

0 votes
Rebekka Heilmann _viadee_
Community Champion
April 3, 2024

Hi @Michał Pacewski 

you will have to use the field "Parent" to add the Story to an Epic. It works the same as Epic link did before.

For the Sub-Task rule, it's correct to have it as a seperate rule. You need to allow the rule to be triggered by other rules. You find that checkbox under Rule Details.

Michał Pacewski April 3, 2024

It works :)

Only the case with parent - when I choose it from the list i see only option "current issue" and "Trigger issue". I cannot choose from the list epic I want, as it is in "epic link"

 

How should it work? 

Rebekka Heilmann _viadee_
Community Champion
April 3, 2024

@Michał Pacewski 

Click on the 3 dots next to the field and choose "SET" rather than "COPY".

Suggest an answer

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

Atlassian Community Events