Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,310
Community Members
 
Community Events
168
Community Groups

How can I set the a date of an issue based on the earliest/latest date of related issues?

I'd like to:

  1. Take a main issue
  2. And when it's sub-tasks or linked "is blocked by" issues have a field change on "Start Date" or "End Date"
  3. Find the earliest "Start Date" and latest "End Date" of these issues
  4. Apply the Earliest Start Date and Latest End Date to my main issue

Is this possible?

1 answer

Hi @stringsonfire,

 

Sure, it's possible but you need to change the way you think about this. you will probably need to split the sub-tasks and the "blocked by" issues.

Your trigger should be "field value changed" for "start date", "end date".

filter for "sub task" types only.

then use "if-else" filtering

on the first if: add "Advanced compare condition" and compare {{issue.parent.start date}} greater than {{issue.start date}}.

if it passes, add a "branch" to "parent" and then add "edit issue" action to copy the start date from the trigger issue.

Then use "else" to check for "end date" the same.

If it works - create a 2nd automation for blocked issues (you can probably merge the 2 automation but it will require much more filtering)

That should work. Good Luck!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events