I want to notify our release team that items are ready for them to process.
The criteria are:
The mail I send contains a table with the following info.
I have got two variations working. One sends a mail when a story or bug is done. The other one runs a query once a week and sends a mail per story or bug that has transitioned to Done in the past 7 days.
Now my problem. I only want to trigger the mail when both criteria are correct. But my automation only looks at the criterium that the story is Done.
When the Gereed maken voor KIR-team item is Canceled the mail is still send.
What am I doing wrong?
JQL search When Scheduled
project = FINM AND issuetype IN (story, bug) AND status = DONE AND resolved >= -7d
Query variable 2:
"{{issue.key}}", "{{issue.summary}}", "{{#issue.subtasks}}{{#if(equals(summary,\"Gereed maken voor KIR-team\"))}}{{customfield_10066}}{{/}}{{/issue.subtasks}}", "{{#issue.subtasks}}{{#if(equals(summary,\"Gereed maken voor KIR-team\"))}}{{#regexFindAll}}{{description}}(?m)^(\\|.*\\|)$ {{/regexFindAll}}{{/}}{{/issue.subtasks}}", "{{#issue.subtasks}}{{#if(equals(summary,\"Gereed maken voor KIR-team\"))}}{{#if(attachments.size)}}{{#attachments}}{{content}};{{/attachments}}{{else}}NVT{{/}}{{/}}{{/issue.subtasks}}", "{{#issue.subtasks}}{{#if(equals(summary,\"Gereed maken voor KIR-team\"))}}{{url}}{{/}}{{/issue.subtasks}}"
I assume the JQL you provided is in the scheduled trigger then use a branch action for sub-task, then you can check sub-taks related to the trigger issues.
Also if you want to email based on the sub-taks, it needs to be in the branch.
An email action outside th branch is based on the main flow of the automation.
A note: a branch action runs parallel from the main flow of the automation, so what happens in a branch can only be used in the branch.
Hi,
That's correct. The JQL search is part of the trigger.
But I also use it as the first step in the branch.
I'll try to put the e-mail part in the branch. When I did that earlier, The mail only had the info of the subtask and not the issue key and summary of the parrent.
So somewere in the branch I need to add that part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't need it as first step of the branch as, it is in the trigger, the only items taken account of in the rule are based on that JQL.
What you could do is a lookup action to find all stories and bug and then branch on sub-task, send the mail in the branch and use the smart values lookupissues, to get the information from the found issues in the mail as well
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.