"When a defect is created on a Test-Step link this to the Task and the Story" Automation

Nikolaos Vlachos April 25, 2024

Hello All,

 

I am trying to create an automation for a process we have for our testing. 

 

Our Testing team will be using Sub-tasks for each test step and if anything fails they will be creating linked defects from each sub-task. I want to create an automation that will link the defect that is linked to the sub-task to the main task and any related stories that the task has. 

 

I have tried using a branch but it links the sub-task to the task instead of the bug. Can anyone help solve this? 

 

If I use the trigger issue the sub-task will be linked to the task and not the bug. 

I haven't managed to find a way to link it to the related story either. 

If I try to use the most recently created issue I get the error on the second image. 

image.png

image.pngimage.png

1 answer

1 accepted

0 votes
Answer accepted
Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2024

Hi @Nikolaos Vlachos ,

Try to use link issue to Destination Issue instead of Trigger Issue.

Nikolaos Vlachos April 25, 2024

It only gives me two options. 

 

Either Trigger issue or most recently created issue.

Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2024

type it manually the smartvalue:

{{destinationIssue}}

image.png

Nikolaos Vlachos April 25, 2024

That worked! Thank you! 

 

Is there also a way in the same rule to link the defect to a related story? 

Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2024

No you cant. You need to create new automation for that one,

Hope it helps. Thanks!

Nikolaos Vlachos April 25, 2024

Do you know what structure to use to link the defect that is linked to the task  to the story?

Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2024

Try this Automation:

When Issue linked (use to linkissue type you use to link the Defect to parent base on your 1st automation)

For: Link Issues: (use the linktype  where issues you want to update e.i test)

       (Optional) Issue fields condition: Issue type = Story (if you want to update only Story Issue type)

     Then Link to Trigger Issue or you can use Destination if you use the outbound linkIssue

     

 

    image.png

 

Then Check to allow other rule actions to trigger this rule in your automation so it will run after the automation of the subtask link automation.

image.png

 

Nikolaos Vlachos April 25, 2024

I don't know if I am missing anything but it doesn't recognise it 

image.pngimage.pngimage.pngimage.png

Suggest an answer

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

Atlassian Community Events