Is it possible delete issue with subtask?

Originally asked by smpark on 11 May 2021 (original question)


Hello,

I am configuring synchronization by referring to the page below.
When Jira deletes Parents Task, Subtask is automatically deleted together.
However, only the Parents Task is deleted from the synced data.
I want to delete Subtasks together.
Is there a good way?

https://docs.idalko.com/exalate/display/ED/Post+Exalate+processor#PostExalateprocessor-Deleteanissueifthetwinhasbeendeleted

Regards,


Answer by smpark on 11 May 2021

I solved it after adding this code.
def issueService = ComponentAccessor.getIssueService()
def subtasks = issue.getSubTaskObjects()

subtasks.each {
	issueService.delete(jiraProxyUser, it, EventDispatchOption.ISSUE_DELETED, false)
}

Comments:

Francis Martens (Exalate) commented on 21 May 2021

Good approach.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.