Forums

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

automation add filed value

arno
Contributor
June 6, 2025

Hi All

    We have been trying to use automaion add field value to comment recently.

    At first, "{{issue.filedname}}" could be displayed normally. However, after we translated this custom field, using the following methods failed to obtain the corresponding value:

   {{issue.filedname}}

   {{issue.customfieId_xxx}}

    I attempted to use the {issue+field name} format, but I couldn't retrieve the corresponding value, no matter which environment's field name I used.

4 answers

1 accepted

0 votes
Answer accepted
arno
Contributor
June 19, 2025

 

We have finally decided to unify the field names and no longer perform translation.

Thanks everyone help

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2025

Hi @arno 

For a question like this, context is important for the community to help.  Please post the following:

  • what version of Jira are you using: Cloud, Server, or Data Center
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Until we see those...

 

Smart values are name, spacing, and case-sensitive...and frequently do not match the field's displayed name on the Jira pages.  When an incorrect smart value is used, that returns a null value.

To learn the smart value (or custom field ID), field structure, and if it is supported by automation rules, please use this how-to article:

https://confluence.atlassian.com/automation/find-the-smart-value-for-a-field-993924665.html

 

Kind regards,
Bill

arno
Contributor
June 8, 2025

Hi @Bill Sheboy 

   thank you for your reply

   we are use jira server, server version :8.13.3

   our automation like this:

a.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2025

Thanks for that information, and...

 

Please post an image of the audit log details showing the rule execution.  That will confirm which rule steps processed and if there were any errors.

 

Did you try the how-to article to confirm your smart values / custom field ID's are correct?

arno
Contributor
June 10, 2025

hi @Bill Sheboy 

    sorry,the log did not show any errors. As I mentioned, when I did not translate this field, I was able to obtain the corresponding value using any method.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2025

Did you try the how-to article to confirm your smart values / custom field ID's are correct?

arno
Contributor
June 13, 2025

Hi @Bill Sheboy 

    Yes, the field ID is correct.

     I once again referred to the official documentation and discovered this explanation

     If you're trying to access custom fields with translated names in your smart values, then use the language set for your rule actor user.

     I'm not quite sure. Do I need to add multiple rules to ensure that users obtain the correct field values in different language environments? just like this:


BUG ID:

{{issue.BUG测试ID}}

{{issue.BUGtestID}}

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 14, 2025

This appears to be a known defect which was fixed in a later release than you are using: 10.2.1

https://jira.atlassian.com/browse/JIRAAUTOSERVER-1025

https://confluence.atlassian.com/jirasoftware/issues-resolved-in-10-2-1-1456346546.html

 

If you do not upgrade versions, you could try the workarounds noted in the defect, although I suspect they may not work to maintain the translated values.

0 votes
Piyush Annadate _ACE Pune_
Community Champion
June 6, 2025

Try {{issue.field name.value}}

arno
Contributor
June 6, 2025

hi @Piyush Annadate _ACE Pune_ 

    I have tried this way

   Before the translation field,

    {{issue.product}}    {{issue.product.value.value}}  {{issue.customfieId_14001}}   {{issue.customfieId_14001.value}}

   All these methods can obtain the corresponding values.

    When I translated "product", the above methods were unable to obtain the corresponding value and it was displayed as empty.

Piyush Annadate _ACE Pune_
Community Champion
June 9, 2025

What type of field 'Product' is?

arno
Contributor
June 10, 2025

hi @Piyush Annadate _ACE Pune_ 

    it's a test filed, product is a text filed

Piyush Annadate _ACE Pune_
Community Champion
June 10, 2025

then that should be via the {{issue.customfield_XXXX}}; should work.

0 votes
Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2025

Hey @arno 

What type of field is the custom field? And do you have a snippet of where it's used in your automation?

Thanks,

Aaron. 

arno
Contributor
June 6, 2025

hi @Aaron Williams 

  thank you for you reply

   it is a text field,my automation just like this:

   


   product:

   {{issue.product}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events