Is it possible to create an automation rule that assigns to the due date of a story the due date valor most future present among all the present issues of that project?
Then I would like to do the same thing with the start date, taking the most recent date present.
For example
Thank you
Hi @Silvia Fattori -- Welcome to the Atlassian Community!
You probably can do that using the list and math functions. It may require the use of a temp variable (create variable or custom field) to retain the value.
And, the techniques would be different if you are using sub-tasks versus the other issue types, as sub-tasks are already a list and you could find the maximum date immediately: {{issue.subtasks.Due date.max
}}
What have you tried thus far to do this?
Best regards,
Bill
Thank you for your quick response.
My search for two max dates should be done on all types of issues in the project (so not only subtask). I would need to know how to put it in the automations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For more details, here is an example to set the Due Date for a specific Epic...
If you wanted to check a Due Date spanning all issues in a project you could use a created variable and iterate using a different branch JQL filter...but, you will need to pick an issue to store the maximum value into, such as a specific Epic.
__Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Silvia Fattori , this can be done with the {{lookupissues.Due date.max}} and {{lookupissues.Start date.min}} smart value functions. See attached.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, indeed. Those fields did not exist in Lookup Issues when this question was first posted, so the solution is now easier to implement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Haha! I figured so or you would have suggested it.
@Bill Sheboy i was actually looking for a way to specifically ask you if you can do the following:
{{lookupissues.Due date.max.diff(issue.Start date).businessDays}}
I believe you can, but I'm having an issue getting the max due date to come through (separate issue).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup, and I believe you just have a couple of smart value capitalization and spacing issues...this worked for me:
{{lookupIssues.duedate.max.diff(issue.Start date).businessDays}}
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.
Thank you!
One follow-up question -- if your lookupIssues only has a single value, does the .max function still work? When I removed that, everything worked -- note that there is only one issue blocking my test issue, but there could be more in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can ignore this question -- the capitalization and space issues seem to have fixed that problem as well -- never realized it was going to be that picky!
Thanks again!
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.