Forums

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

Schedule automation

Bruna Junckes Sant Anna
Contributor
July 14, 2022

I am trying to create an automation that creates 7 equals issues every week at 7:30 monday. but keeps giving me this error when i set the schedule:

The rule has been configured with components that require issues to be provided by the trigger. You need to use the option to run JQL to provide issues. The following components require issues: Clone issue

Captura de Tela 2022-07-14 às 14.52.53.png

3 answers

1 accepted

1 vote
Answer accepted
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 14, 2022

Hi @Bruna Junckes Sant Anna 

That error is indicating your rule actions are referencing issues and fields, but the trigger did not supply any issues.

The fix depends upon what you want to do:

  1. if you are creating new issues independent of other data, check the actions to remove an field references and smart values
  2. if you are creating new issues based on other issues, your trigger needs a JQL statement to select an issue first

Which of those matches your case?

Kind regards,
Bill

Bruna Junckes Sant Anna
Contributor
July 14, 2022

I want to clone the issue with their data, so i can have 7 issues equals with the same parent link

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 14, 2022

Thanks, and...is there a source issue you want this rule to use (for the cloned data)?  That is, where does that "parent link" come from?

Bruna Junckes Sant Anna
Contributor
July 14, 2022

i want it to be the task created before

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 14, 2022

What we can see in your rule image is this:

  1. trigger is scheduled (with no JQL)
  2. create a task
  3. create a sub-task for that issue
  4. create another task
  5. create another task
  6. create another task

In this case, only the sub-task from step #3 has a parent: the task created in step #2.  If you want the others to have the same "parent", they must also be sub-tasks and not tasks.

If I am misunderstanding your need, would you please try explaining further?  Thank you!

Bruna Junckes Sant Anna
Contributor
July 14, 2022
  1. trigger is scheduled (with no JQL)
  2. create a task
  3. create a sub-task for that issue
  4. clone the sub-task before with all informations also with the same parent link the task, the one created at item 2
  5. clone the sub-task before with all informations also with the same parent link the task, the one created at item 2
  6. clone the sub-task before with all informations also with the same parent link the task, the one created at item 2
  7. ...
Like Cat Quinn 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 14, 2022

Thanks for clarifying your scenario.  Your rule is missing some branches to make it work, which is what is causing that error.

  • trigger: scheduled with no JQL
  • action: create a task
  • branch: on the most recently created issue  (This will be the task created.)
    • action: create a sub-task
  • branch: on the most recently created issue (This time it will be the subtask created.)
    • action: clone issue
    • action: clone issue
    • ... for as many cloned subtasks as you need

 

So the first error you encountered was because the Create Subtask action did not have a parent defined.  Using the branches helps the rule know where to add the subtask.

Like Matthew Sandahl likes this
Bruna Junckes Sant Anna
Contributor
July 18, 2022

Does not work, creates the subtask, but when clone issue makes the clone a task and not a subtask

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 18, 2022

Would you please post images of:

  • your complete current rule,
  • the details of the clone action, and
  • of the audit log details showing an execution.

Seeing those may provide some context for what is happening.  Thanks!

Bruna Junckes Sant Anna
Contributor
July 20, 2022

Captura de Tela 2022-07-20 às 09.44.03.pngCaptura de Tela 2022-07-20 às 09.41.42.png

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 20, 2022

Thanks, that helps explain things!

The Clone Issue action works on whatever the "current" issue is in a rule, and that can change based on rule components, such as where you are in the rule's steps.

When you wanted to create the first subtask you branched to the parent task.  Afterwards you can branch to the subtask and then clone...like this.

  • trigger: scheduled
  • action: create task
  • branch: to the most recently created issue (i.e. the task)
    • action: add a subtask
  • branch: to the most recently created issue (i.e. the subtask just created)
    • action: clone (which uses the subtask as source)
    • ...
Like Jaanika Talvistu likes this
1 vote
Karyna Tyrnavska _SaaSJet
Atlassian Partner
July 15, 2022

Hi, @Bruna Junckes Sant Anna !

To create automation that creates 7 equals issues every week at 7:30 Monday use Business Process Manager add-on. My team has developed it to automate usual procedures. A flexible scheduler allows to automatically create Jira issues with forms. 

image.png

This no-code add-on is free for the first 30 days! With full functionality.

Jack Brickey
Community Champion
July 15, 2022

@Karyna Tyrnavska _SaaSJet a please be sure to disclose that you are associated with an app when recommending it in an answer. I do thank you for including your company in your name here.

0 votes
Jack Brickey
Community Champion
July 14, 2022

Hi @Bruna Junckes Sant Anna ,

would it be possible for you to translate that error for me here?

Bruna Junckes Sant Anna
Contributor
July 14, 2022

The rule has been configured with components that require issues to be provided by the trigger. You need to use the option to run JQL to provide issues. The following components require issues: Clone issue

Like lei likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events