How to update parent customfield when a sub-task is deleted?

Suppose I have a project with several issuetypes (standard and sub-tasks).

 

I implemented a sub-task post funtion to copy a field value to parent issue, so in my dashboard I do not need to filter sub-tasks because the information I need is in the parent field. This information is updated according sub-task changed state.

When assignee delete the subtask, I have an inconsistent value in the parent issue.

 

Its possible to clear the parent field when the sub-task is deleted.

 

Other option I guess is to implement DELETE as a sub-task workflow postfunction, remove permission to delete from MORE menu.

in this case, this change (permission) can impact other issuetypes?

 

is there any other solution?

1 answer

This widget could not be displayed.

Using the Delete option works like the Edit button.  It's not a workflow transition, so there are no types of automation available for those operations.  It does beg the question "why do you allow people to delete sub-tasks in the first place?" An alternative would be to create an "Abandon" workflow transition for sub-tasks that closes the issue, automatically sets the resolution to "Won't Fix" and updates or clears the parent issue field.  The result is the same as deleting the issue, so it seems unnecessary to actually use the delete function. You also won't have to wonder what issue ABC-123 originally was when you audit your instance.

Hi Dave, I tried to create an "Abandon" workflow transition... suposing it is a post-function. But I cannot found any post-function where I can delete the issue (by workflow button). Is there some addon to do it?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

573 views 25 15
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you