Forums

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

Automation: Sprint started/completed does not trigger

Glenn Ruysschaert
Contributor
July 3, 2024

Hello,

I have an automation which creates some tickets in a new sprint, after completing a sprint.

Screenshot 2024-07-03 at 15.02.57.png

I noticed for two sprints already, this has not been triggering anymore, even though it used to work on other boards (the IT Board is a new board).

For example today I completed and ended a sprint, this sprint just started

Screenshot 2024-07-03 at 15.02.39.png

But in the audit logs it does not appear for the automation

Screenshot 2024-07-03 at 15.04.25.png

 

To double check I created 2 test automations, one with global scope and one with IT scope. These would print a log when the sprint starts.

After starting the sprint, they did not run.

Global:

Screenshot 2024-07-03 at 15.04.52.pngScreenshot 2024-07-03 at 15.05.10.png

IT scope:Screenshot 2024-07-03 at 15.04.57.png

Screenshot 2024-07-03 at 15.05.02.png

 

This leads me to believe something might be wrong with the board (Software Project type). But I cannot figure out what.

 

Does anyone know why my automations aren't triggering?

Kind regards 

2 answers

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
July 3, 2024

Hi Glenn,

Not sure what might be happening to trigger the new Sprint, but it might be that the automation rule is checked to be allowed to run when something else triggers it. Take a look at the Rule Details and see if the box is check to allow it to be triggered by another option. 

Automation Rule trigger box.png

Glenn Ruysschaert
Contributor
July 4, 2024

Hello @John Funk ,

The checbox is not checked.

Screenshot 2024-07-04 at 09.16.45.png

 

Kind regards

Like John Funk likes this
John Funk
Community Champion
July 4, 2024

Figured as much. You should check it. And them Update. And then test again. 

Glenn Ruysschaert
Contributor
July 4, 2024

@John Funk 

Hello,

I tried this automation with a different board (other rule actions unchecked), and there the sprint trigger works.

So it seems it is only on this specific board where the trigger does not seem to work.

Like John Funk likes this
John Funk
Community Champion
July 4, 2024

So you checked the box, saved it, and then tried the process again, and it still didn't work? 

Glenn Ruysschaert
Contributor
July 4, 2024

For the current sprint that is active I cannot complete the sprint and start a new one, as this is an actively used sprint by our IT team. That's why I tried with a different board on which can be experimented.

So to try it again on this specific board, I will need to wait until the sprint is actually done (2 week sprints).

Like # people like this
Glenn Ruysschaert
Contributor
July 25, 2024

Hello @John Funk 

We started a new sprint, on the board where the automation does not work.

With "allow other rule actions to trigger this rule", the rule does not get triggered.

I have a test automation in place:

Screenshot 2024-07-25 at 09.58.29.png

This one got triggered

Screenshot 2024-07-25 at 09.59.42.png

But the automation that should trigger, does not:

Screenshot 2024-07-25 at 10.00.35.png

Screenshot 2024-07-25 at 10.00.56.png

Any ideas?

 

Kind regards

Like John Funk likes this
John Funk
Community Champion
July 25, 2024

That first rule will not trigger the second rule if that is what you are expecting. What is causing the the sprint to get Completed? Do you have evidence of the Sprint being completed? 

Glenn Ruysschaert
Contributor
July 25, 2024

Hey @John Funk ,

No, they are separate automations, not linked to each other.

I set up the "Test sprint started" automation, as evidence that when I close a sprint it gets detected. All it does is log the sprint.

But the other automation, does not get triggered (along with some others that are very similar, they all just make some tickets for the next sprint).

So now I have evidence (because of the test automation), that when I complete a sprint, it triggers automations. But for some reason, not all automations get triggered and I can't understand why.

Like John Funk likes this
John Funk
Community Champion
July 25, 2024

So bottom line is that a Sprint completed action will trigger an automation rule, but a Sprint started action will not. Is that correct? 

If so, wondering if you could do some type of workaround where you set the value of a custom field when the Sprint is completed. Then when you Start a Sprint, you somehow read the value of that field and trigger a rule based on that. 

Or maybe try the workaround that @Bill Sheboy suggested for a global rule in one of the JAC tickets he mentions above. 

Glenn Ruysschaert
Contributor
July 25, 2024

Hey @John Funk ,

I have now changed the scope in rule details for the automation that is not triggering to "Global", with the when sprint completed still on the "IT Board".

When this sprint completes, I will check again (as this sprint is currently in use by the team).

I will post the results when I know more.

Like John Funk likes this
John Funk
Community Champion
July 25, 2024

Awesome - best of luck!

Glenn Ruysschaert
Contributor
August 19, 2024

@John Funk 

It seems like changing the scope to Global fixed it.

Thanks for the help

Like John Funk likes this
John Funk
Community Champion
August 20, 2024

Great! Glad to hear. 

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2024

Hi @Glenn Ruysschaert 

Are your rules triggered for Sprint Started and Sprint Completed using global-scope?  If so, there are known defects / limitations for those:

https://jira.atlassian.com/browse/AUTO-1047
https://jira.atlassian.com/browse/JRACLOUD-80707
etc.

A workaround I found for these was to use a global, incoming webhook, triggered rule to perform what is needed, and then set up a site, outbound webhook for the needed sprint events to trigger that rule.  I covered the details in that second suggestion.

Kind regards,
Bill

Glenn Ruysschaert
Contributor
July 25, 2024

Hello @Bill Sheboy ,

The automation is not global scope, but for a single project:

Screenshot 2024-07-25 at 10.00.35.png

Screenshot 2024-07-03 at 15.02.57.png

Like John Funk likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2024

Thanks for that information, Glenn.

If these are project-scope rules, and the the sprint completion is done manually (i.e., not by another rule), yet it is still not triggering, I recommend working with your Jira Site Admin to submit a support ticket to Atlassian to identify the cause: https://support.atlassian.com/contact/#/

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events