Smart Values using Jira Automation

Joe
Contributor
September 4, 2020

I am try to have a counter using smart values. 
I am able to get a counter by manually naming the sprint and then the counter continues at the end. For example the sprint name is Test 1. The release then gets the same name and makes a new release with the name Test 2. My question is how do I get the counter to change if for example the number is in between the letters. For example: Q1SY 
How do I get the 1 to change to a 2 using smart values? I appreciate any help. 

The smart value I am using right now is {{sprint.name}} 

1 answer

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 5, 2020

Hi @Joe 

Can I confirm the need here:

  • You have a sprint named Test 1
  • A release is also created, Test 1
  • A second release is then created, Test 2

^ How does this relate to the number between the letters? Is it that these would be called Test Q1SY instead?

It'd be good to clarify which items need to be created via the rule and how these relate to the naming conventions :)

This will help to replicate your need and hopefully provide the answer!

Ste

Joe
Contributor
September 6, 2020

Hi @Ste Wright 

When I use the name and then the number the counter works fine. For example Test 1 then Test 2 and so on. When I type let’s say Test Q1SY like you said the counter gets added at the end. For example Q1SY1 and so on. I want the counter to change on the first one. Q2SY and so on. Is this possible?

Joe
Contributor
October 9, 2020

Hello @Ste Wright 

I hope this makes more sense. I have a sprint name Q1SY19 and then with the automation a release is created named Q1SY19. A second release is then automatically created. This second release created should be named Q2SY19 but instead its named Q1SY20. What smart value do I use to increment the 1 in Q1? Also would it be possible to tell the smart value to stop incrementing at 8 for example? I appreciate your help on this. 

Suggest an answer

Log in or Sign up to answer