Hi @Mark Segall ,
Hope you are doing well!
i want to add few custom field values on automation email for customer.
1. Custom Field - Scrum Master(user picker type)
2. Regression Required? (Single choice from drop down)
3. CAB date (date format)
4. CRQ (alphanumeric label type)
i tried below and getting blank outcome
{{Issue.fields.customfield_12xx}} - scrum master
{{Issue.fields.customfield_13xx}} - regression
{{Issue.fields.customfield_14xx}} - can date
{{Issue.fields.customfield_15xx}} - crq
Can you help with the correct smart values for each. I have managed to get for all other non custom fields and stuck with this.
Also I have tried with .name, .value, . displayName etc t the end still get the blank value.
Also noticed for scrum master field when I removed issue at the beginning and runs with field.customfield_12xx it return me the I'd of the user like 69agdjsjmmqw12 but not the name.
Regards,
Hi @Rahul Jith
Smart values are name, spacing, and case-sensitive. And often the smart value does not match the displayed field name on the issue views. The how-to article below helps to identify the correct smart value (and custom field id) for any supported fields for automation rules.
The essential steps are:
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
In addition, the field type impacts which attributes are available with the smart value. For some examples:
{{issue.myUserField.accountId}}
{{issue.myUserField.displayName}}
{{issue.myUserField.emailAddress}}
{{issue.mySelectionField.value}}
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
When I tried with fields.customfield_1234.value it worked for the single selecti drop.
The same didn't worked for single or multiple label added field.(CRQ field mentioned above).
Also it's missing for the date picker field entry.
I tried with fields.customfield_1234("dd/MM/yyyy").value - this also returns empty.
User field is sorted. Many thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thing, I recommend removing the "fields." prefix as it is not needed.
Next, for the field you describe as a labels field type, that will be a list. Just providing the field name should be sufficient to produce a comma-separated values list: {{myLabelsField.value}}
Finally, I am unclear what you are trying with this syntax:
{{customfield_10032("dd/MM/yyyy").value}}
What type of field is customfield_10032? If it is a date or date / time picker, and you want to control the output format, please use this:
{{customfield_10032.value.format("dd/MM/yyyy")}}
To learn more about date / time formatting, please look here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-format---
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello budy, how are you?
Try using the lowercase letter i instead of uppercase
For example
{{issue.fields.customfield_XXXXX}}
Using it like this worked and the value is sent to the email correctly
Tell me if it worked for you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @André Felipe Rodrigues Lopes ,
Yes it worked with few fields.
When I tried with fields.customfield_1234.value it worked for the single select drop.
The same didn't worked for single or multiple label added field.(CRQ field mentioned above).
Also it's missing for the date picker field entry.
I tried with fields.customfield_1234("dd/MM/yyyy").value - this also returns empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy @André Felipe Rodrigues Lopes ,
Finally it worked out. Many thanks for your support and guidance. It helped and it worked.
Cheers.
Attaching the screenshot of the alterations made and it's outcome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.