Test stories automatically created

Marco Domizio September 5, 2023

hello all I need to make sure that whenever a development story is marked as done a test story is automatically created  

1 answer

1 accepted

1 vote
Answer accepted
David Blank
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.
September 5, 2023

Hi @Marco Domizio and Welcome to the Atlassian Community!

 

Are you a Project or Organization Administrator? You will need to be an Administrator in order to use the below tool.

 

I would accomplish this with Automation. You need some details before you get started though.

First you need something to trigger your automation. In this case it sounds like we could use the Issue Transitioned event, but you would need to know what identifies it as a Development Story. Maybe you are using components or Labels?

 

If you are using labels, your automation might look something like this:

Screenshot 2023-09-05 at 8.48.06 AM.png

Marco Domizio September 5, 2023

@David Blank  thank you very much, I am working on it and I am using the labels, how can i make sure that the new test story is linked to the development story which has been marked as done?

David Blank
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.
September 5, 2023

Great @Marco Domizio ! Do you see where I am setting the "Relates to" link at the bottom of my screenshot? You can choose any link type that fits for you, I just chose this one randomly.

David Blank
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.
September 5, 2023

@Marco Domizio another note: The Jira "Smart Values" I am using in the screenshot will pull in details from the issue that triggered it.

Issue.key will give you the issue unique identifier and issue.summary will give you the summary.

I use these and other smart values to populate information I want to pull from the issue that triggered the automation and use in my newly created issue.

You can find more Smart Values to use here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Marco Domizio September 5, 2023

@David Blank great David, thank you so much. Last question: in order to not create problems we would like these test story to be put immediately into a Test Sprint created. is this something that can be done authomatically?

David Blank
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.
September 5, 2023

@Marco Domizio My pleasure!

 

Are you trying to put it into a Sprint that already exists?

You can add the Sprint field to your Create Issue Action and assign it to an existing Sprint or you can use Smart Values to assign it to the same sprint as the Story that triggered the automation rule.

I don't think it's possible to create a Sprint with automation though.

If I answered your question would you mark my answer as accepted? This will help others in the future.

Marco Domizio September 5, 2023

I want to create a sprint where to put all these stories, problem is that when I go through the fields I cannot see Sprint

David Blank
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.
September 5, 2023

@Marco Domizio I have never created a Sprint using Automation, but I did find this question on the community where someone suggests using a Send Web Request Action to do it: https://community.atlassian.com/t5/Jira-Software-questions/set-up-automation-creating-new-sprint/qaq-p/1929573

 

To add it to an existing Sprint, it should appear under available fields when you choose fields to set on your create issue action:

Screenshot 2023-09-05 at 10.07.55 AM.png

Marco Domizio September 5, 2023

@David Blank  you have been incredibly helpful but under fields I cannot find Sprint, I guess that this is a restriction on my organisation

David Blank
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.
September 5, 2023

@Marco Domizio Thank you, I'm happy to help! Is the Sprint field on your Create Issue layout for Story? If not, add it and that should make it appear in your Create issue action in automation.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events