Automation for Jira (Plugin Jira automation)

info_intercomp_ru November 18, 2019

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
M Amine
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 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
info_intercomp_ru November 19, 2019

Thank you Mohammed!

Which of that I should to choose?

Check2.png

M Amine
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 19, 2019

you can use JQL condition.

info_intercomp_ru November 19, 2019

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

Check3.png

M Amine
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 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

info_intercomp_ru November 19, 2019

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

info_intercomp_ru November 20, 2019

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