Email or Slack a list of work items assigned to deactivated users in Jira Cloud
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Learn how to send Slack alerts or email notifications when a user is deactivated so their work can be reassigned.
Solution
A user's deactivation is an event under user management (admin.atlassian.com) and, hence, is separate from the Jira product. Jira automation can be triggered based on work item events or events specifically within the Jira products.
Send alerts using Automation
It's possible to create a rule with a scheduled trigger that runs at the specified frequency. This rule would check all the work items assigned to inactive users and send an email to the admins or a Slack message to the specified channel.
Rule Details
Trigger: Scheduled trigger (without JQL): Desired frequency.
Action: Lookup Issues:
JQL to be used in lookup issues:
reporter in inactiveUsers() or assignee in inactiveUsers()
Action: Send Slack Message:
Message body:
{{#lookupIssues}} * {{key}} {{/}}
The Action can be replaced with ‘Send Email’ instead of a Slack message, depending on the requirement.
Was this helpful?