Forums

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

Moving parent (Story, Bug) to Done (column) with test, if test is passed

Jouni Riimala
Contributor
November 16, 2022

Hi,

Needing automation help, scenario:

Test (issue type) has "Passed" status and it is linked to the parent issue with "is contained in" link role. Parent issue (a Bug) has Fixed status (Development ready).

Ideally, I would like that system would move both parent and child issues to Done column once test is passed. 

How to achieve this or at minimum when test is moved to Done then linked parent would be automatically moved to Done. After issues would appear on Done column then it would be relevant to show only parent there...

 


kanban.PNG


2 answers

1 vote
Karim ABO HASHISH
Community Champion
November 16, 2022

Hi Jouni,

Yes this is definitely possible, please follow the below steps to set and configure your Automation Rule.

  1. From Project Settings, go to Automation and create a new rule from the top right button

    TP1- Create Rule.png
  2.  Select 'Issue Transition' Trigger and then select the status 'passed' in the To status field

    TP2-Trigger-Passed.png
  3. Optional we could add a condition to ensure that the ticket type is Test before proceeding. Select 'Issue field condition'.

    TP3-IssueType-Test.png
  4. Now we will create a new branch of type 'Branch rule /related issues'. For the 'type of related issues', select linked issues. (you can optionally specify a specific link type)

    TP4-NewBraench-LinkedIssues.png
  5. Optional but recommended within the same branch add a condition to ensure that the test ticket has links to other ticket. The condition should be of type 'Related Issues Condition'

    TP5-Condition-LinkedIssues.png
  6. Within the same branch add a new action of type 'Transition Issue' to Done (This will transition the linked issue)

    TP6-Transition-LinkedIssue.png
  7. In the outer branch (The main one) add a new component for a new Action of type 'Transition Issue' to transition the Test Ticket to Done (This will Transition the Test Ticket)

    TP7-TransitionIssue-OuterBranch.png

    TP7-TransitionIssue-OuterBranch1.png

Now Let's Give This Automation a name and Turn it on to test and validate

TP8-Turnon.png


Let's Test the Rule

  1. We have the bug now in 'In Development' Status and Linked Test Ticket in the 'In Testing Status' as you see below

    TP9-BoardScenario.png
  2. Now i will drag the test ticket from 'In Testing to Passed'.

    TP10-Board-MoveTestToPassed.png
  3. Wait for few seconds and refresh the board. here are the results.

    TP11-Results.png

Feel Free to practice and learn, it is really fun. you can enhance the Automation Rule later by marking the tickets as resolved and adding a comment to the Parent ticket that it was closed automatically because the test has been completed successfully.

Let me know if you have further questions.

Cheers,

Karim

1 vote
__ Jimi Wikman
Community Champion
November 16, 2022

If you have Automation, then you have an automation out of the box to transition parent when all children are closed. You can also create an automation to close any task that transition to Passed, which means both automations will be triggered.

Suggest an answer

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

Atlassian Community Events