Forums

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

Can a custom field (A) contain smart values be passed to another Custom Field (B) and be replaced?

Ricardo Martinez
Contributor
June 17, 2022

I have a Custom Field Text Field (multi-line) (lets call it A) which contains text and some smart value.

Then I have another Custom Field Text Field (multi-line) (lets call it B) which contains the value of Field A, but I want the Smart Values to be translated to the actual value.

 

Is this possible?

 

I attach image, here:


test_template is A

test_email_to_send is B (has an automation that whenever A changes it changes, it is defined as {{issue.test_template}}).  This works.

But 


I want the value in B to change the {{issue.Customer}} to the actual value of Customer.Captura de pantalla 2022-06-17 a las 15.23.05.png

1 answer

0 votes
Joseph Chung Yin
Community Champion
June 17, 2022

@Ricardo Martinez -

I believe you can use Automation for Jira and establish a rule using smart valule to conduct what you want to do.  Here are the documentations links for Automation for Jira -

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

https://support.atlassian.com/cloud-automation/docs/what-are-smart-values/

https://support.atlassian.com/cloud-automation/docs/smart-values-in-jira-automation/

The rule essentially gets triggered off (i.e. Issue Created event), then execute an edit issue action where you can update your field value.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Ricardo Martinez
Contributor
June 20, 2022

No, that is actually my question.

I AM using Automation already; see 
(has an automation that whenever A changes it changes, it is defined as {{issue.test_template}})

I am already using smart values, see above.

 

My question regards a field that contains text which has smart value, and it does not translate to the actual value when passed to another text.

Joseph Chung Yin
Community Champion
June 20, 2022

@Ricardo Martinez -

Can you provide your automation rule setup (especially the Action configuration)?  So, we can review your setup to see what is not working?

Best, Joseph

Ricardo Martinez
Contributor
June 22, 2022

Sure, here it is.

Whenever test_template changes (A) the value is set to test_email_to_send (B)
But the smart Values are not translated.

Im looking for a way to translate theseCaptura de pantalla 2022-06-22 a las 9.35.40.png

Joseph Chung Yin
Community Champion
June 22, 2022

@Ricardo Martinez -

Can you try to add this action - "Log action" before your Edit Issue fields action.  This is useful to debug your rule and smart value's value.  By doing so, you see if the value is properly captured for prior to your field B update.

Here is the link on how to debug an automation rule -

https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/

Your rule seems to be valid and correct.

Let me of your findings.

Best, Joseph

Suggest an answer

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

Atlassian Community Events