The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Why does my automation rule create 1000 jira's?

reece.singh
March 22, 2024

Hi all,

I am trying to create an automated daily jira that also adds watchers automatically.

However, it asks me to run a JQL search to provide issues.

What would I need to put in here to only make the automation run once? As it is currently repeating itself and creates 1000 jiras.

 

image.pngimage.png

 

Thanks,

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Ste Wright
Community Champion
March 22, 2024

Hi @reece.singh 

You can get around this error, as JQL isn't necessary when creating an issue - rule should look like this:

  • Trigger: Scheduled
  • Action: Create Issue
  • Branch: Related issues
    • Type = Most recently created issue
      • Branch-Action: Manage watchers

The Branch ensures the action is taken by the issue you've created, rather than requiring this data from the JQL search.

Ste

reece.singh
March 26, 2024

Hi @Ste Wright 

 

This worked perfectly, thank you very much.

 

Best,

Reece

Like Ste Wright likes this
1 vote
Answer accepted
Sebastian Krzewiński
Community Champion
March 22, 2024

Hi @reece.singh 

 

Reason why rule created over 1000 issues is that you put quire open JQL in Scheduled trigger.

You need to modify your rule as below:

1. Trigger - Scheduled - just uncheck 'Run a JQL'

2. Action - Create issue

3. Branch for Most recently created issue

4. Put in branch Manage watchers action.

 

Rule should looks like below

Screenshot 2024-03-22 at 11.13.32.png

 

This should solve your issue.

 

Regards,

Seba

reece.singh
March 26, 2024

Hi @Sebastian Krzewiński ,

 

This worked! Thank you for the image you attached, saved plenty of time.

 

Best,

Reece

Like Sebastian Krzewiński likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events