Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation Rule Efficiency

Hello!  I have several projects with various automation rules, some lighter than others.  After reviewing the audit logs one of the most critical rules we have appears to take up to 13 seconds to execute but it also seems to be the most 'basic' to a certain extent.  I was hoping someone might have an idea on how to best handle this or improve/lower the processing time.

 

The rule is built as follows:

  • Trigger: Issue Created
  • If Organizations == X, Y or Z
    • Set Watchers
  • Else If Organizations == A, B or C
    • Set Watchers
  • etc. (this has a total of 9 If/Else If/Else)
  • Put an internal Comment for all watchers

 

In some cases the Organizations check in a single IF or ELSE IF can be 30+ organizations (i.e. If Organizations == 1, 2, 3, 4, ... 30).  I have thought about using Components instead but then I need to assign a specific component based on the Organization so I don't believe that will driver better efficiency.

I was hoping that since this data is static (i.e. the Watchers are always the same for a specific Organization) that there would be an easier way to do this via something like a 'lookup' table, get the values and just apply them to the ticket.  That doesn't seem to be supported from what I can tell.

This is becoming more important because now these rules are starting to kick off other rules that are similar in nature.

Any thoughts on how to best manage this?

1 answer

0 votes

Hi, Ryan. I hope this message finds you well!

First of all, I would like to congratulate you for your concern with having rules that perform well within the Jira Cloud. This is a fundamental point of the project.

Second, I would like to say that if I were you I would do this configuration using Insight Cloud and configure a script in JMWE to obtain this information based on Insight Cloud.

Why?

1. When we set up a catalog structure in Insight Cloud, you make your organization's process more scalable by allowing ordinary users to keep their automation rules up to date.

2. With JMWE you can set up a post-function to perform this action in the create transition.

3. With Automation for Jira you can create a rule to always perform a self-reflective transition whenever the Organization field is changed.

By putting these three actions into practice, you will have a better performing and more scalable environment.

Ryan, do you use Jira Server or Cloud?

.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Announcing Mindville Insight is now part of Jira Service Management!

Hello Community! We’re excited to announce that Mindville Insight’s asset and configuration management capabilities will now be integrated into Jira Service Management Premium and Enterprise plan...

600 views 9 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you