Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

By creating new sprint a new story is created in THIS new sprint (automation)

Jeroen Kotterlink February 7, 2022

HI all,

I'm creating an automation that when I create a new sprint, a new story is created in this sprint.

I already managed to do this, but when I create a new sprint again, the new story is not created in the new sprint but in the first created sprint after the active sprint. 

How can I create this in the new created sprint? I tried several routes in "automation" but so far I didn't succeed.

I hope you can help me. 

Thnx.

2 answers

2 accepted

0 votes
Answer accepted
Karen Davis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2022

Hi Jeroen,

I encountered a similar situation recently, and this article helped me immensely; https://www.adamnengland.com/2021/01/26/jira-automation-populate-your-sprint-with-stories-on-creation/. I hope it helps you as well.

Karen

Jeroen Kotterlink February 9, 2022

Thnx Karen, it works.

0 votes
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.
February 7, 2022

Hi @Jeroen Kotterlink -- Welcome to the Atlassian Community!

Would you please post images of:

  • your automation rule and
  • of the audit log details, showing the case when the created issue is added to the incorrect sprint? 

That will provide some context for the community to suggest ideas.  Thanks!

I suspect you are getting the sprint information (for the issue create) from JQL rather than from the triggering sprint created.  The images will help confirm that, and what to update for a fix.

Kind regards,
Bill

Jeroen Kotterlink February 7, 2022

Jira1.JPGJira2.JPG

 

When I create a new sprint, the first sprint after the active sprint is filled with the new created story. As soon as I create another sprint, the new story is not created because it checks the sprint after the active sprint, this one is not empty, so create nothing. But it had to create a story in the latest and empty sprint. 

I'm missing JQL experience to solve this, I guess.

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.
February 8, 2022

Thanks for that information.  If I understand your case correctly, you want to automatically add an issue when the sprint is created.

Using the trigger of sprint created, you should not need to perform any additional tests as the sprint will be empty if just created.  Perhaps try this:

  • trigger: sprint created
  • action: create issue, assigning it to the new sprint with {{sprint.id}}
Jeroen Kotterlink February 9, 2022

Thnx, it works

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events