Hello Team,
I used custom field in the automation
{{issue.fields.customfield_ Product}}
but I got the value as empty
Looking for some inputs!!!
Hi @Santhosh Velmurugan
Welcome to Atlassian Community
Can you try using {{issue.customfieldnamehere}}
Example:
If your Customfield name is Product
{{issue.product}}
Hello @Santhosh Velmurugan
Welcome to the Atlassian community.
When referencing a custom field in a smart value in Automation you use either the field name (i.e. Product) or the custom field ID which is customfield_ followed by a 5 digit number.
If Product is the name of your field try using {{issue.Product}}
Make sure that the custom field ID you're using is correct. The ID customfield_XXXXX should exactly match the custom field’s ID in your Jira instance.
How to Find the Correct Custom Field ID:
Go to Jira Settings > Issues > Custom Fields.
Locate the custom field you want to use (in your case, “Product”).
Hover over the field name or click to edit it. The URL will contain the custom field ID, like customfield_XXXXX.
Ensure you're using the correct ID in the automation rule.
If it is a cascading field then use. {{issue.customfield_××××.name}}
Else use
{{issue.customfield_××××}}
Hi @Santhosh Velmurugan -- Welcome to the Atlassian Community!
Adding to Trudy's suggestion:
Smart values are name, spacing, and case-sensitive. When an incorrect one is used, that returns null. To identify the correct smart value (or custom field id) for your field, please use this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,Bill
Thanks @Yash_reddy
I used the {{issue.product}}, but still I'm getting null value
Thanks @Trudy P Claspill @Bill Sheboy
Thanks @Manoj Kumar Gangwar
I tried below commands,
but not working
{{issue.customfield_11147.Product}}
{{issue.customfield_11147.name}}
{{issue.fields.customfield_11147}}
What is the actual name of the field in the UI?
Can you provide a screen image showing the field within an Issue.
Note what @Bill Sheboy said:
Smart values are name, spacing, and case-sensitive. When an incorrect one is used, that returns null.
Thankyou @Yash_reddy , there is some unknown space in the custom field. that's why it is not working.
Now it is working, Thankyou
Finally I'm using {{issue.Product}} it is solved the issue.
FYI.. there is a some unknown space in the custom field. that's why it is not working.
After removing the space in the project setting, now I can able to retrieve the data
Thanks Everyone
It looks like you're new here. Sign in or register to get started.