Number of interactions in a ticket using Automation for Jira
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
This article instructs how to create a custom field that counts the number of interactions (changes in statuses) in a ticket using Automation for Jira.
Solution
Creating the "Interactions" custom field
Select > Issues.
Under FIELDS, select Custom fields.
Click Create custom field. Make sure to select All to view the available field options.
Select Number type and click Next.
Add the details for your field.
Name: Interactions
Description: Hold the number of interactions in the ticket.
When you have entered the field details, select Create.
Add the new custom field to one or multiple screens by ticking the corresponding box and click Update.
Creating and configuring the Automation Rule
To create a new rule:
From your service project, select Project settings > Automation.
In a team-managed service project, select Service project settings > Automation.
Select Create rule in the top-right corner.
Configure the trigger settings and select Save.
Once your rule is created, you can edit its details at any time from the rule details.
To configure the rule:
Select the trigger: Field value changed
Fields to monitor for changes: Status
Change type: Any changes to the field value
For: All issues operations
Ideally, you select this option to get all changes in a ticket but you can filter out to your need.
Click Save
Example:
(Optional) Add a new component: User condition
Add this condition if you don't want to get changes made by Automation.
User: User who triggered the event
Check to perform: is not
Criteria: Automation for Jira
Example
Add a new component: Edit Issue
Select Interactions field in the
Choose fields to set... select field.
In the Interactions field, place the following Smart Value:
|
Click Save
Example
Give a name to your Automation rule.
Click Publish / Turn it on
The final result should be something similar to this screenshot:
Was this helpful?