You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to pull the basic properties of a custom field via automation but I am not getting the content I am expecting. I assume I am missing something simple but I have tried numerous iterations from various sources with no change in behavior.
I am able to pull the value of the custom field without issue but the properties do not seem to be producing any content.
I have been using this as a resource to see what my options are:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
Available properties
{{issue.[Custom Field].id}} - Returns the unique id for the field assigned by Jira. It is better to use this than name as it cannot be changed.
{{issue.[Custom Field].description}} - Returns the text displayed below the custom field viewed in the Simple Search column.
{{issue.[Custom Field].name}} - Returns the visible label displayed on the left of the field.
Here is my custom field information:
This is my automation content:
Name: {{issue.User ID.name}}
Desc: {{issue.User ID.description}}
ID: {{issue.User ID.id}}
Value: {{issue.User ID}}
Name: {{issue.fields.customfield_10066.name}}
Desc: {{issue.fields.customfield_10066.description}}
ID: {{issue.fields.customfield_10066.id}}
Value: {{issue.fields.customfield_10066}}
This is my issue details:
This is the information I get in the email:
Any assistance would be appreciated.
Thank you.
Yes, and...to what Fabian suggests:
The field type determines the available smart values. For example, for user fields you can access accountId, displayName, emailAddress, etc.
To help identify the available attributes for a field, please take a look at this how-to article. Essentially you find an example issue and call the REST API with a browser to list all possible smart values and their structure. Please note this may not find fields from addons which could be dynamically calculated from the addon.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Thank you for the reply. I referred to the resource you provided and was able to see the intended "name" of the custom field in the output. I am just not able to pull that property via the automation. I should have clarified, the field I am trying to get the properties for is just a custom text field, it has nothing to do with a user field that is related to authentication in any way. I have a number of these text custom fields that I would like to get a key:value pair from them in the automation output. I am able to pull the value successfully via a number of different syntaxes in various other posted questions about smart values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ryan, would you please post images of your complete automation rule and of the audit log details showing an execution that does not work as you expect? That may provide context for why the data is not returning. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, thanks for any insight. I thought it was pretty straight forward in the documentation, which is why I just dont understand why I am not getting all the data I expect. This is a test rule I created just to play with the data I can pull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bro, take the "fields" part off your smart values. So in your case it would be {{issue.customfield_1066.id}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the updated content per your suggestion.
Keep in mind, I have no issues pulling the values from the fields in any of the syntax examples I have tried, I am unable to pull the field properties. I was assuming based on the published documentation I provided in my original post that these properties were available in the manner they are being requested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the reply, but I tried your suggestion and it resulted in the same data output as the examples I provided. I can pull the value in each iteration of the syntax, I just can't seem to pull the properties of the custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Often when a rule does not return information for the smart values, it is caused by a few possible things:
If none of those help, please create a new question, and link back to this thread. Creating a new question helps, as otherwise only the people following an older thread will see your comments/questions.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.