Forums

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

Automation toLowerCase function does not produce the expected result

Loïc B.
Contributor
October 6, 2022

Hello,

I'm struggling with an unexpected error during a Jira Automation rule, using the string function toLowerCase() (documentation : https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/)

 

Here is the log text I'm printing during the execution:

current sprint is: ‘{{issue.sprint}}', to lower case : '{{issue.sprint.toLowerCase()}}'

 

Here is the output I get : 

current sprint is: ‘MOB POS 1.8 [2]', to lower case : ''

 

I'm going to make more tests to understand what's wrong, of course. But in case someone knows something about it, I'm interested in getting a feedback...

thanks, best regards,

loïc b.

 

1 answer

1 vote
Walter Buggenhout
Community Champion
October 6, 2022

Hi @Loïc B.,

Could you try the following instead: 

 current sprint is: '{{issue.sprint.name.toLowerCase()}}'

For more info on sprint attributes in smart values, see this support article (locate the {{Sprints}} smart value)

Hope this helps!

Suggest an answer

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

Atlassian Community Events