Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic assignment of components based on keywords

Seyyede Reyhane Khakshoori July 30, 2023

Hi!
We are using Jira data center 9.2. We want to Assigning a component based on the summary keyword.
For example when write "order a box" in the summary box issue, assigning "Order" component.

1 answer

1 accepted

0 votes
Answer accepted
Ste Wright
Community Champion
July 30, 2023

Hi @Seyyede Reyhane Khakshoori 

You can use Automation to do this.

The rule below is an example using IF/ELSE statements, to create different outcomes based on different scenarios.

You can change the rule's parameters depending on your needs, this is just an example.

---

  • Trigger: Issue Created
  • Condition: IF Block
    • IF...
      • Condition: Issue Fields Condition
        • Field = Summary
        • Condition = contains
        • Value = Order in a box
      • Action: Edit Issue
        • Field = Components
          • Value = Box
    • ELSE-IF...
      • Condition: Issue Fields Condition
        • Field = Summary
        • Condition = contains
        • Value = Order in a crate
      • Action: Edit Issue
        • Field = Components
          • Value = Crate
    • ...etc

---

You can set as many IF/ELSE-IF conditions as you need.

You can also use the "Advanced Compare Condition" if you need more powerful text comparisons, which can use regex.

See more about how each component of the Automation Rule works here: https://confluence.atlassian.com/automation/components-in-jira-automation-1141480614.html

---

Let us know if this works!

Ste

Suggest an answer

Log in or Sign up to answer