It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation for Jira (Plugin Jira automation) Edited

Good day!

Intro:

I have to create some automations for my project using plugin Project automation

Description:

Project issue type screen scheme has 2 types (task and sub-task).

Target:

Designed automation should change its dueDate depends on its sub-tasks's the latest dueDate.

Screen:

Community.png

 

Thank you for your help!

 

1 answer

0 votes
Mohammed Amine Community Leader Nov 18, 2019

I would suggest the following : 

  1. Trigger : Field Value changed for field 'due date' and for all operations
  2. Test if : the issue is subtask
  3. Then : go to its parent and
    1. Test if : the parent due date is before the subtask due date
    2. If yes : update the parent due date with the subtask due date

Thank you Mohammed!

Which of that I should to choose?

Check2.png

Mohammed Amine Community Leader Nov 19, 2019

you can use JQL condition.

But after that I should to edit parent issue by JSON? There's no any parent's options.

Check3.png

Mohammed Amine Community Leader Nov 19, 2019

the due date is the parents' one. If you want to get the subtask due date you have to use smart values {{triggerIssue.duedate}} : link

Your solution is greatful! it's work.

I've decided to change start values from parent + subtask to linked issues (task has "blocks" and bug has "is blocked by").

How can I compare task's dueDate and bug's dueDate? And change task's dueDate to the latest bug's dueDate?

For example:

tasks' due - 20/Nov/19

linked bug's due - 30/Nov/19

Task's due must change to 30/Nov/19.

 

Screenshot:

CC.png

Find this function:

{{now.isAfter(issue.created)}}

 

Is it possible to use smth like that?

{{issue.duedate.isAfter(triggerIssue.duedate)}}

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you