I have read many threads and tried every combination I could fine but can't simply get dates from {{lookupIssues}} in my branch for the Epic parent when my trigger issue (Story) changes.
Things that do work for my Jira Automation Rule:
Things that do not work for my Jira Automation Rule:
Help! :)
I’ve run into the same limitations with Jira Automation and {{lookupIssues}}. Unfortunately, {{lookupIssues.first}} and {{lookupIssues.last}} return issue objects in a limited context, and accessing fields like Start Date or custom fields directly on them doesn’t work the same way as with {{issue}} or {{triggerIssue}}.
A workaround that tends to work is to use the “Re-fetch issue data” option in your branch or to iterate through {{lookupIssues}} using a smart for loop in your log/conditions and then reference each issue’s fields individually, e.g.,:
{{#lookupIssues}}
{{Start Date}}, {{customfield_XXXX}}
{{/lookupIssues}}
This will give you all the dates for the Epic’s child issues. Then you can apply .min or .max outside the loop on the collected values.
Others have mentioned that sometimes the automation engine doesn’t resolve nested fields on first/last objects, so using the loop approach is more reliable.
Hi @Frankie J
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
Without knowing your Jira version, I wonder if you are using Jira Server or Data Center, as those only have a limited number of supported fields in the Lookup Issues action results:
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.