Hi all,
I know there are an array of different solutions to this question but I can't get a working version, wondering if there are Smart Value deprecations taking place.
Scenario
When an Epic child work item has a Start or Due Date entered or updated, the automation updates the parent Epic with the earliest Start date and/or latest Due date from amongst the child work items, which may exists across multiple Sprints.
WHEN Due Date field update
IF Parent Exists
--> Branch - FOR Parent IF Parent is Epic
THEN Edit Work Item - Set Due Date using Smart Value
Current Outcome
When I test my trigger it flows and identifies the Epic correctly, I have verified this by adding labels using the 'Additional Fields' section.
Current Problem
The Smart Values I'm using are not finding the Start Date and Due Date to do the update.
I have tried existing solutions below, but with no success
Due Date = {{issue.children.sprint.endDate.max.jiraDate}}
Due Date - {{issue.children.sprint.last.endDate.jiraDate}}
Due Date - {{lookupissues.dueDate.max.jiraDate}}
Due Date - {{lookupissues.sprint.max.endDate.jiraDate}}
Due Date - {{lookupissues.sprint.endDate.jiraDate}}
What concerns me is that neither of these sets of properties exist in the Smart Values Automation reference.
Automation smart values - issues | Cloud automation Cloud | Atlassian Support
Thanks in advance, look forward to putting this issue in the rear view :-)
Rich
Hi @Rich Allen
As you note, this is a commonly asked question and the solution approach depends upon what version of Jira you are using: Cloud, Server, or Data Center.
For Jira Cloud, use the Lookup Work Items / Issues action with JQL to gather the child items, and then use the min and max list functions to get the dates needed.
For Server or Data Center, the lookup does not support those fields yet. A workaround is to use the REST API to gather the child items and then use the list functions on the web response. That approach is described here:
Kind regards,
Bill
HI @Bill Sheboy ,
Thanks for the response, I think that is the challenge, lots of information but no actual working solution available.
My concern when I review the automation smart values pages through the link in my original post, it doesn't show supported properties for either issue.children or lookupissues.
Hoping there is a solution out there using even just one of the Smart values properties referenced 🤞
Cheers,
Rich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As a reminder: the Atlassian Community is a place for people with similar interests to learn and collaborate with another. It is not a free labor pool to provide turnkey solutions upon demand. A team's Jira Site Admin can help provide such solutions.
Thus it helps to show rule and audit log images of what you have tried to provide context for the community to offer suggestions.
Back to my earlier question: what version of Jira are you using?
If you are using Jira Cloud, one simple rule would be:
However if you are using Jira Server or Data Center, neither the Due Date nor Start Date are in the lookup issues results. And so the REST API approach must be used, as described in that linked post.
Finally, you only describe one of the possible cases needed to update the parent's fields. The other ones will require additional rules, including at least:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again for taking the time to respond, completely agree with your comment. My intent with the post is not looking for turnkey or 'free labor', but a very specific question around supported properties associated with Smart Values for Cloud Automation in the link; which ones people generally use, have issues with etc.
I have most of the other automation in place, the sticking point was pulling the min Start and max Due dates (or the Sprint min and max dates) from an array of Child work items.
I'll revisit the pages already reviewed and re-implement from ground up, hopefully just something missed first time around.
Much appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried with "issue.duedate
" instead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just found this set of examples in an older post:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Alexander, a useful link for sure.
My scenario isn't solely setting dates, I have already implemented similar.
I need to look through ALL child items of an Epic when one of them has a Due Date updated, and pull out the latest Due Date, whether that is the child item being updated or not and update the parent Epic Due Date
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.