I have created the following steps:
Jira indicated that I had to specify a JQL for my trigger. I tried different options, including specifying the fields of the subtasks (which converts the subtasks creation to create an issue) and passing {{createdissue.key}}. This worked for the first subtask but gave an error for the rest. The error meant that the parent couldn't be a subtask. So, I tried to be "smart" and use {{createdissue.key - x}}, where x is 1, 2, 3, 4, but with no luck.
To cut short a long story: How can I get the JQL string that I should use in my case?
Thanks.
I tried the following and it seemed to work for me.
I changed the branch condition and only created two tasks for testing.
Thanks @Najm Polaris
This also makes sense, and I see your point. In my case, I wanted to hit 2 birds with one stone:
But, thanks anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
I hypothesize your rule is missing a branch and using the Create Subtasks action.
That action requires an issue to be in scope to become the parent, and your rule does not have JQL for the Scheduled Trigger, leading to that error / symptom.
The solution for your scenario is to add a branch to the most recently created issue before creating the subtasks. For example:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy and @Trudy Claspill
I am sorry I didn't include any images of my automation. That would have made my request clearer. I am including some now after I applied what Bill suggested.
As for the JQL, I used:
created = 1m AND summary ~ "Quarterly Satisfaction Survey"
Do you think I am doing things right now?
Many thanks for your patience and understanding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based on your original question, this looks correct.
Does it work as you expected when you tested it? If not, what does not?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Hassan Shahin
Can you show us the details of the rule you created? It is very difficult to advise on what might need to be changed without that information.
A Scheduled trigger can be set up to select issues against which the rest of the rule actions will operate, or to not select issues.
If the trigger does not select the issues, then the actions in the rule have to be correctly configured.
You can accomplish what you want. It is probably that there is some error in the type of actions you selected, or how you organized them, or how you are trying to use smart values.
When you show us the details of your rule we can provide better advice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.