Can't add conditions as first step when Jira automation rule is created for multiple projects

kurshid.rostom August 12, 2020

I set up Jira automation for multiple projects and when the rule is created, the first step is to add issue triggers which kick off events for all the projects until it hit the conditions which can only be added in the subsequent steps.

I only want the event to be generated for 1 project because when multiple events are created even when no actions are performed, they count towards Jira executions and usage for multiple projects. With multiple events occurring during the day especially on Service Desk tickets, we're reaching our execution limit before it gets reset at the end of the month.

 

 

2 answers

1 vote
John
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2020

Hi @kurshid.rostom ,

I don't think there is a way to get around the multi project usage for this scenario. There will always be some kind of evaluation to check if the issue matches certain conditions.

My best suggestions is to rethink the trigger. I'm guessing you might be using the "Field value changed" trigger which will run anytime the issue is update. Here are some alternatives (I haven't vetted all these):

  • Reduce the number of fields on "Field value changed" trigger
  • Only sync the issues when the dev ticket moves to a certain status (changing the trigger to "Issue transitioned")
  • Only sync the issues at the end of the day using the schedule trigger (There may be issues if you have a large number of tickets being updated each day, you might need to test this idea before relying on it) 

I hope that helps.

Cheers,
John

kurshid.rostom August 18, 2020

Hi @John 

I did try the first 2 options but if I use "Issue assigned" trigger, I can't reduce the number of fields in the trigger. I've used "Field value changed" for assignee but it will still log "No actions performed" because when the assignee changes on one of the projects, it will still log it even if it doesn't meet the conditions.

The schedule trigger isn't an option for us because we want to see real time updates on customer tickets.

I think the main issue that needs to be addressed is that "no actions performed" shouldn't count as usage for multiple projects just like single project rules are not counted towards the execution limit.

Since some of the triggers that are offered can't be configured, and conditions can't be added in the first step, only rules with success status should count towards the limit.

I had to disable some of them yesterday because we were very close to our limit and will have to wait until the end of the month when the limit is reset to re-enable them. I wish there is something that can be done about this.

 

John
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2020

Hi @kurshid.rostom 

Thanks for the feedback on creating more configurable triggers, I'll pass this on to the team.

Unfortunately with some triggers we need to execute the rule to evaluate the conditions because the trigger event doesn't contain the information needed. So even though no action was performed we still need to run the automation to know that.

I'm sorry to hear you've had to turn off your automations 😞 I'll look into some more trigger options for you but without upgrading either Jira Software or Jira service desk to premium it might be hard to stay within the usage limits.

Cheers,
John 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2020

Hey @John  - I have the same issue, I need to check a value when an issue is created before I do something. But it fires on every issue create on dozens of projects which means over 5,000 executions per month just with that one rule. We really need the ability to embed a condition in the actual trigger which determines whether the trigger even fires or not. 

Like John likes this
kurshid.rostom September 8, 2020

Hi @John

I'm following up to see if the issues raised will somehow be addressed.

John
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2020

Hi @kurshid.rostom 

We won't be making any changes to our Jira triggers at the stage.

The trigger events don't have the specific information you want to filter by (e.g. in your case you only want the rule to run if there are linked issues). The automation has to run in order to fetch this specific information. As soon as that automation is run it counts towards usage. 

To solve this you can increase the number of multi-project and global rule executions. Jira Cloud Premium will give you 1000 multi-project and global rule executions per user, per month.

Kind regards,

John

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2020

Hi Kurshid,

If I understand you correctly, just change the Scope under Rule Details to a single project. 

kurshid.rostom August 16, 2020

Hi John,

I need to set it up as global rules for multiple linked projects. To give you an example, the customer ticket is linked to a development ticket. When there is an update in the development ticket, it's updating the customer ticket which is working as expected.

However, what's also happening is if there is a change in a development ticket that's not linked to a customer ticket and vice versa, events are triggered with no actions performed. I want to exclude these from the audit log because they are counted towards execution and usage.

The major issue with the automation rules for linked projects is that when the rule is created, the first step is to add a trigger and not a condition. So events are triggered for all issues until it reaches the conditions and then log all these events (success and no actions performed) in the audit log.

I hope this makes sense

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events