Forums

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

How to use part of {{Sprint.name}} to automate User Story Creation

Joao Resende July 19, 2024

hi community, 

 

I'm trying to create an automation that creates a set of User stories once a new sprint is created. I want to use part of Sprint's Name in the title of the user stories. For example:

Sprint name = Sprint 123

User story title = Title of the user story #{{Sprint.name but only the numeric part}}

 

Hope you can help on this one. 

TY

 

2 answers

1 accepted

0 votes
Answer accepted
Joao Resende July 22, 2024

Hi @Mohamed Benziane , 

tks for the suggestion, I used {{sprint.name.substringAfter(" ")}} and is working just fine 

 

Tks a mill

0 votes
Mohamed Benziane
Community Champion
July 19, 2024

Hi,

 

Here some function that you can use with smart values of type text

Automation smart values - text fields | Cloud automation Cloud | Atlassian Support

You could use substringAfterLast(String separator) :

{{issue.summary.substringAfterLast(" ")}}

 Here i'm looking for the last space, then it will take everything after this space (please test it before)

Suggest an answer

Log in or Sign up to answer