Select Page

Blog Summary

Jira Automation offers a powerful toolkit for enhancing your project management workflows. In this blog post, we’ll explore a crucial aspect of Jira Automation – preventing and reverting field changes. We’ll delve into practical examples and real-world use cases to illustrate how you can leverage automation rules to maintain data integrity and streamline your Jira processes.

One of the main tools in your arsenal is Jira Automation, which allows you to automate repetitive tasks, enforce data validation, and ensure that field changes adhere to your defined rules. Let’s look into how you can harness the power of automation to prevent and revert field changes in Jira.

Using Confluence and Jira Service Management together

How to set up your Automation

While Jira lacks a built-in feature for blocking certain field modifications, you can achieve this functionality by leveraging Automation Rules. With Automation Rules, you can establish a system that automatically reverts the change immediately after it occurs. Below are examples on how to set it up. 

Gettings started with the automation

 

Step 1: Configure the Trigger Start by configuring the trigger to “Field value changed.” If desired, enable the option to execute the rule immediately. This ensures that any changes made by the user are quickly intercepted by the rule, providing a seamless experience.

Step 2: Set the Conditions Define the conditions for the rule. In our example, we consider adding a conditions to further refine the rule’s behavior, such as checking if the user triggering the event belongs to a specific role or group. Users in Jira-admin-kitphs group will not trigger the automation in this example.

Step 3: Define the Action For the action, select “Edit Issue” and specify the fields to revert. Use Smart Values to dynamically capture the previous value of the field.

 

  • {{fieldChange.toString}} contains the new value the user inputted to the field.
  • {{fieldChange.fromString}} contains the previous value of the field.

.

Step 4: Setup Additional Notifications To ensure users are informed about the changes, consider setting up additional notification actions. Options include adding a comment to the issue, sending an email notification, or notifying channels through integrations like Slack or Teams. Utilize Smart Values such as {{initiator}} to personalize notifications and provide context to users.

Automation complete!
By following these steps, you can create an Automation Rule that automatically reverts changes made to the Epic Link field, maintaining data integrity and ensuring users are kept informed throughout the process.

 

Conclusion:

Leveraging automation to revert fields in Jira offers several benefits, including maintaining data integrity, streamlining workflows, and reducing manual effort. By configuring Automation Rules to intercept and revert changes made to specific fields, organizations can ensure that data remains accurate and consistent. Additionally, automation helps enhance user experience by providing seamless and immediate feedback when invalid changes are detected. Overall, embracing automation for field reverting not only improves efficiency but also contributes to a more streamlined and reliable project management process in Jira.