Forums

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

When the last subtask is closed, the parent case should also be closed.

Juergen Remmel June 5, 2020

Jira is hosted by our own, no cloud version (we use the latest version of Jira).

I want to create the workflow of a project so that when the last subtask of an issue is closed, the parent task is closed as well. I want to do this without a costly addon. What options do I have? Unfortunately I can't get along with the instructions I found so far.

1 answer

0 votes
Andy Zhou June 5, 2020

In general, if you have Scriptrunner (for on-prem instance), you could add a post function to the subtask's transition (say Done transition) with a Custom script post-function (Scriptrunner). The simplest logic in the script would:

  • Go to the parent issue
  • Check if all the other subtasks (of the parent issue) are already in the same transitioned status (say Done status)
  • If yes, then transition the parent issue to the desired status
  • If not, do nothing

Hope this helps.

Suggest an answer

Log in or Sign up to answer