Smart value help for sprint value

Raju Mandapaka April 6, 2024

Team,

Our sprint patterns are like below..

EARTH XA7.1 MAR10

EARTH XA8.1 APR10

EARTH XA9.1 MAY10

I need to write a smart value to find out  XA number by using sprint assigned.

Eg : I assigned "EARTH XA7.1 MAR10" sprint to a story, Now i need to write a smart value to extract to XA number to it belongs - In above case the XA number is 7.

Please help.

 

Thanks in advance.

 

1 answer

0 votes
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 6, 2024

Hi @Raju Mandapaka ,

Base on your format, meaning the XA number will be find between "AX" and "." .

This smart value below will get the last sprint name text between "XA" and ".":

{{issue.sprint.last.name.substringBetween("XA",".")}}

Raju Mandapaka April 10, 2024

Hi @Dexter de Vera 

Thanks for the information, but i am having a few cases where sprint names are as follows 

MARXA XA3.2 May22

 

In this case above smart value is not working.

Tried few options like charAt functionality, but not able to pass smart value in charAt functionality.

Thanks,

Raju

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 10, 2024

Base on your new case MARKXA have XA that is why you got an error. So you can add space at the beggining just to make text unique. Please dont add new case like this - MAK XA XA3.1 because you will got error again. :)

{{issue.sprint.last.name.substringBetween(" XA",".")}}

Suggest an answer

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

Atlassian Community Events