Automation rule to enforce a comment added before an issue is Deleted

Claudio Rouillon
Contributor
July 2, 2024

Hi Community.....  I am trying to setup an Automation to alert when an issue is deleted, but will also want to (1) send the latest comments on the issue - before it gets deleted of course and (2) hopefully, if no comments exist to enforce a last comment to be added on why it's being deleted.

I am sure this has been tried before. Below is my initial attempt at this.

Jira_question_july3.JPG

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

Hello @Claudio Rouillon 

What problem are you trying to solve by sending the comments to somebody before the issue is permanently deleted.

The nature of Automation Rules is to run in reaction to an event and then run without interaction with the users. You won't be able to use this rule to pop up a dialog to get a comment from a user.

Alternately you could remove the permission of users to delete issues. You could create a manual rule to allow them to initiate an issue delete action. With a Manually triggered rule you can prompt the user for input.

However, I personally recommend allowing only Jira Admins to delete issues, since issues are not recoverable once they have been deleted. Or implement one of the third party apps that puts the issues into a "trash can" from which they can be restored.

Claudio Rouillon
Contributor
July 2, 2024

Hi Trudy,

to begin with, only our Administrators on the project can delete issues. What we want to encourage or achieve is that a comment is always entered prior to the issue being deleted.

So I will try the manual rule you suggested. Thank you for your response.

Like John Funk likes this
Claudio Rouillon
Contributor
July 2, 2024

Actually, while we explore restricting the deletion of issues, I changed the rule slightly and it's doing its job in terms of letting people know in the event an issue is deleted.

The manual rule won't do as it requires the user to kick off the automation.

See below. Thanks again.

Jira_question_july3_2.JPG

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events