Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira software automation

Luc Noppen April 22, 2020

Hi,

Is it possible to create an automation rule that transitions a task to "Done" if all of the sub-tasks are "Done"?

Thanks

1 answer

2 votes
Mohamed Benziane
Community Champion
April 22, 2020

Hello @Luc Noppen 

Yes it's possible. You can read the documention here:

https://blog.codebarrel.io/synchronize-parent-and-sub-task-issues-with-automation-for-jira-bdcca6c9d453

 

Hope this helps

Luc Noppen April 23, 2020

The example you're referring to is just the other way around. If the parent issue is "Done" transition all the sub-tasks also to "Done"

This is not the correct answer to my question.

In my organisation the sub-tasks have to be all in the "Done" status before the parent issue can transition to "Done".  And transitioning the parent issue to "Done" is easily forgotten. So from the moment that all sub-tasks are in status "Done" the parent issue should also transition to "Done".

Can you give me an example of such an automation rule?

Kind regards.

Mohamed Benziane
Community Champion
April 23, 2020

Hi,

Can you try this

automation.png

 

I create a new branch for the Parent and used the "related issue" component in the if statement

Luc Noppen April 24, 2020

Hi,

I've created the automation rule as described above. Not as a global automation rule but as project automation rule.  I've created a task and several sub-tasks. I transitioned the task to "in progress"  and started transitioning the sub-tasks to done.

During the execution I got thiss message in the audit log:

Action details:

This rule was configured with a project restriction. You can change this restriction in the 'Rule details' section. Only issues from the following projects or project types will be considered:DEVTLS

Related issues condition

The following issues did not match the condition:DEVTLS-1967

I continued to transition the sub-tasks to done. And although I got an error the parent task was transitioned to done. But the audit log's status was "No actions performed".

The automation rule works with some errors.

Can you fix this?

Thanks

Suggest an answer

Log in or Sign up to answer