Hey,
in my automation I have a simple rule to lookup the child issues from one epic and set the epic due and start date according to the child issues (dates min/max).
That is working for a single epic. How can I advance the automation to define a jql with more epics so the all processed in this way?
Kind regards,
Thies
You could try to fetch the Epics and put your actions into a branch rule, like this:
Smart values of the Epics than are accessible via `{{triggerIssue}}`. You can find example inside the branch rule itself.
Have a good one,
Hauke
Hey @Hauke Wollentin
Its the other way around :-)
With your example branch, it will edit the tasks of the epic. Thats not my usecase.
I want to lookup issues per epic and take the due and starte date from that and write it in the epic
Cheers,
Thies
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah sorry, it should work also the other way around, but as @Stefan Salzl mentioned there could be pitfalls, since a logic like "take the latest due date of the issues in an Epic" isn't easy to implement - maybe it's impossible - with just Jira automation.
If you have ScriptRunner installed maybe a custom class or method would make sense to solve such approaches.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Hauke Wollentin
its possible and I made it:
Works fine :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys, I just learned you can use the "scheduled" trigger to do a JQL Query. All issues returned will be treated as trigger issues. You could then use the "For: Sub-tasks" branch then a status condition to act on their sub-tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
technically I understand what you want to do, logically I don´t:
An epic will potentially have several child issues. So the lookupIssues action will deliver a list of child issues. They all can (and potentially will) have different min/max dates.
So according to this it makes sense if you want to copy any field from a parent to a child (as there is a 1:n relation) but how would you validate from which child a field should be copied to the parent as the relation is the other way round --> n:1 ??
I guess it can be done technically but I guess the automation rule will always take the date of the last child issue of your lookupIssues and write it to the parent. As said: this might be technically correct but keeps big potential for wrong results.
Best
Stefan
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.