I want to count the status of a child issue close when it is deleted.

koutarou ishibashi September 19, 2023

I may be wrong because I am not good at English.

JIRA Automation counts the number of child issues whose status is closed.
I set the trigger when creating a child issue and when transitioning a child issue.
I want to be able to run it when a child issue is deleted.

We currently have the following settings, but please lend us your wisdom so that it can be executed even when a child issue is deleted.


When: Manually triggered
All logged in users van run rule.


Then: Lookup issues
Search for issues using JQL
parent = {{issue}} and status = "Closed"


And;Edit issue fields
Word Count

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2023

Hi @koutarou ishibashi 

When you want a rule to trigger after an issue is deleted, try using the Issue Deleted trigger.

If that is not what you asked, please try this:

  • Post an image of your complete automation rule
  • Post an image of the audit log details showing the execution of your rule
  • Explain what in the rule is not working as you expected.  Providing a specific example may help to better explain the symptom.

Kind regards,
Bill

koutarou ishibashi September 19, 2023

Using the deleted issue trigger will result in the following error.


Split rules/related issues
An error occurred while searching for related issues. The most likely cause is that the next issue does not have a related issue of the specified type. Try narrowing your search to include only issues that contain links to related issues.
KEN-59: "((Key = KEN-55) AND (key != KEN-59)) AND (project in (10005))" - Issue does not exist or you do not have permission to see it.。Automation.pngerror.png

koutarou ishibashi September 19, 2023

When I use the issue deletion trigger, I get an error in the Then: Lookup issues part because the issue has been deleted.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2023

First, the "Parent link" field has been deprecated, so please consider no longer using that.  Please look here to learn more: https://support.atlassian.com/jira-software-cloud/docs/upcoming-changes-epic-link-replaced-with-parent/#Updates-to-automation

Next, when the Issue Deleted trigger fires, the issue is captured for use in the rule.  And so the fields are present.  I just tested this to re-confirm the behavior in Jira Cloud.

What is the type of the issue you are deleting?

  • If the issue being deleted is a Story and the parent is an Epic, you may use either of these smart values: {{triggerIssue.parent.key}} or {{triggerIssue.Epic link}}
  • If the issue being deleted is a Subtask and the parent is a Story, Task, or Bug, you may use {{triggerIssue.parent.key}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events