Hello,
How do I access once of the custom fields from the first item in a lookupissues object that I have in my automation rule?
Thanks
Hi!
Do I understand you want a custom fields from the frist issue returned by the lookupIssues automation action?
If so, lookupIssues is a list, so all actions on a list, you can do here:
{{lookupIssues.first}}
This will give you the first issue in the list. To access the customfields you can continue using the dot-notation, eg:
{{lookupIssues.first.summary}}
You will find more info about SmartValues here:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.first
Hope this helps!
I can think of couple of ways:
- {{lookupIssues.customfield_10XXX.first}}
- {{#lookupIssues}}{{#first}}{{customfield_10XXX}}{{/}}{{/}}
Log both entries to see your output and let us know if issues.
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.