Forums

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

Smart Value Manipulation on Issue Creation

joemallion March 9, 2022

Hi guys,

I am trying to populate a custom "Text Field" from a custom "Select" field on issue creation. 

I need to urlEncode the value returned from the select field. 

The first two smart values below return a populate the field with the value from the select field as expected. 

But I can't seem to get it to return anything when I try to apply any text functions to the value.

Any ideas would be amazing!! 

{{triggerissue.Client}}

{{issue.Client}}

{{issue.Client.urlEncode}}

{{issue.Client.toLowerCase()}}

{{issue.Client.toString}}

{{issue.Client.toString.urlEncode()}}

{{issue.Client.toString.urlEncode}}

Workflow Screenshot

 

 


FOR MY REF - https://engineroom.atlassian.net/jira/core/projects/TM/settings/automate#/rule/5779300/99797926

2 answers

1 accepted

3 votes
Answer accepted
Mark Segall
Community Champion
March 9, 2022

Hi @joemallion - UrlEncode should be the right function:

{{issue.Client.urlEncode}}

Question is your Client field a multi-select?  If so, you may need to have it iterate

{{#urlEncode}}{{issue.Client}}{{/}}
joemallion March 9, 2022

Amazing, thank you. 

The below did the trick nicely. :) 

{{#urlEncode}}{{issue.Client}}{{/}}
Like Mark Segall likes this
1 vote
Mohamed Benziane
Community Champion
March 9, 2022

Suggest an answer

Log in or Sign up to answer