Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Sep 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

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

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.
Sep 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events