Forums

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

Pull field value from the first item in a lookupissues object in automation

yaron
Contributor
January 23, 2024

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

 

2 answers

1 accepted

3 votes
Answer accepted
Jeroen Poismans
Community Champion
January 23, 2024

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!

0 votes
Kalyan Sattaluri
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.
January 23, 2024

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events