Automatically Create Jira Issues for New Tickets
Last updated
Last updated
This document explains how to set up an automated workflow to create Jira issues for new tickets based on specified criteria.
For example, you may want to create a Jira issue for any new ticket with potential savings of $500 or more in OneLens. This workflow will automatically create a Jira issue for tickets that meet this threshold.
Before setting up this workflow, ensure that your Jira instance is integrated with OneLens. For integration details, click here.
For a more detailed walkthrough, refer to the video guide available here.
Navigate to the workflow
section of OneLens.
Click the Create button in the top-left corner to start a new workflow.
A dialog box will appear asking for a workflow name. Enter a descriptive name (e.g., "Create Jira Issue for High-Value Tickets
").
You can also add a description, which is optional.
Once you’ve filled in the details, click Create to proceed.
In the workflow setup, select the Tickets
option as your trigger.
You will then be prompted to choose between two options:
Ticket is Created
Ticket is Updated
For this scenario, choose Ticket is Created, as you want to trigger the workflow when a new ticket is generated.
You’ll have two options for how these conditions should be applied:
Trigger when all conditions match – the workflow will only trigger if all conditions are met.
Trigger when any condition matches – the workflow will trigger if any one of the conditions is met.
You can configure multiple conditions by clicking on the Add Rule button.
Each condition involves filling out three fields:
Criteria: Choose the specific property of the ticket you want to filter by. You can use the following attributes:
Ticket: Status, Category
Recommendation: Potential Savings, Effort
Resource: Name, Account, Region, Service, Tags
Cost Center (Org Hierarchy): Cost Center, Category
Policy: Name, Category
Limit: Set a comparison operator or criteria type for the selected attribute. The available options vary based on the chosen criteria.
Borderline: Set the specific value or list of values to compare against.
Criteria: Potential Savings
Limit: Greater Than
Borderline: 500 (this would filter for tickets where potential savings are greater than $500).
You can set multiple conditions, each with unique criteria, limits, and boundaries, depending on the ticket types you wish to target.
Once all conditions are defined, click Save Changes to finalize the trigger.
After setting the trigger and conditions, click Add Step.
Select Jira
from the left menu and then choose Create a Jira Issue.
You will now need to add the following details:
Connection Type: Choose the appropriate connection type for your Jira instance.
Project Name: Select the project to which the issue will be assigned.
Epic: Specify the epic under which the issue will be categorized.
Assignee: Choose the team or individual who will be responsible for the issue.
After entering the details, click Save Changes.
Review the workflow representation to ensure everything is set up correctly.
Click Publish to make the workflow active.
Here is how your Jira issue will look like: