🚀 Effective since April 2020 and JWT version 2.9.0 Automation Toolbox for Jira is fully integrated into our top rated app Jira Workflow Toolbox (JWT)🚀

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

On this page

Use case

From time to time employees leave a company. What happens to the respective Jira account? Deactivating could be an option but for data security reasons users might have to be deleted.

To avoid issues when deleting the user from the internal directory, the following rule can come in handy. It replaces all affected assignees and reporters. Otherwise user cannot be deleted! Plus: Issue related users will be informed by a comment!


 Manual trigger

Create a new rule and name it appropriately.

Providing a description will help you to identify what the rule does but this step is optional.

Add a Trigger → Manual

No further configuration needed. The rule will only be executed if a user hits the Execute button .

We want to update both the assignee and the reporter but the issues might not be identical. This is why we have to set up two selectors and dedicated action.

Update the reporter

JQL Selector

Add Selector → JQL Selector

JQL Query*

Use the following Expression:

reporter = john.doe

Replace "john.doe" with the user name of the user that should be deleted.


 Update field action

Next to the JQL Selector click on Add → Action → Update field

Field*

Choose Reporter

Update to*

Choose Selected value

Value*

Select the new reporter that should be set.

 Add comment action

Underneath the Update field Action click on Add → Action → Add comment

Comment text*

For liability reasons the reporter has been automatically changed.
Update the assignee

JQL Selector

Underneath the first SQL Selector click on Add → Selector → JQL Selector

JQL Query*

Use the following Expression:

assignee = john.doe

Replace "john.doe" with the user name of the user that should be deleted.

 Assign issue action

Next to the second JQL Selector click on Add → Action → Assign issue

Assignee*

Choose one of the given options that fit most for you.

 Add comment action

Underneath the Assign issue action click on Add → Action → Add comment

Comment text*

For liability reasons the assignee has been automatically changed.

 Screencast

This is how the configuration above should look on your screen



If you still have questions, feel free to refer to our support team.