How to create a scheduled trigger without including a JQL query

Kenisha Naidoo November 18, 2024

Hi everyone, hope all is well.

I have a question regarding the scheduled trigger in Jira automations. I want to create a new issue every Monday but I don't necessarily need a JQL query. I just want a new issue to be created every Monday for the Time Tracking of Meetings. 

When I do not add a JQL query, I get the below error:

Without JQL.PNG

I was told to add the project name in a JQL query and maybe that would help, but it created a whole lot of duplicates:

Duplicates of time tracking.PNGJQL Duplicate query.PNG

 

Rule.PNG

If I use a branch, it also gives me duplicates. 

There are two issue types present : Operations and Projects. The issue created must only be for Operations.
I am not sure what criteria would be missing. Can anyone assist with this?

 

Thanks!

2 answers

2 accepted

3 votes
Answer accepted
Marc - Devoteam
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.
November 18, 2024

Hi @Kenisha Naidoo 

Specify the project in the "Create" action and uncheck JQL in "Scheduled" trigger.

Don't use "Same project" option.

Kenisha Naidoo November 18, 2024

Thank you, this worked. Is there a reason why it didn't work when using "same project" because isn't it meant to point to the same project?

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.
November 18, 2024

Hi @Kenisha Naidoo 

For a rule action like Create Issue, the options for Same Project and Same Issue Type are based on whatever the current issue is in the rule's context.  Your rule does not have any issues in context and so the specific value needed must be selected.

Kind regards,
Bill

Like Gosia Adamska likes this
0 votes
Answer accepted
Gosia Adamska
Contributor
November 18, 2024

Hi.
I think that you should do it without JQL search. Set the
trigger to "Scheduled" and 
Then - Create Issue - project and issuetype

I've tried it and it didn't show any errors. The error you mention has to do something with Assigning the issue not creating it. If you want to Assign the issue you may have to use 
BRANCH for Most recently created Issue.

Let us know if that helped. Thanks

Kenisha Naidoo November 18, 2024

Thanks for this! It worked.

Like Gosia Adamska 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