Hey guys,
I am currently struggling with an automated jira rule.
I would like to have the following rule:
Please let me know if you need more details.
Thank you in advance!
What I'd do:
issuetype=Task AND (created >= -4w OR status CHANGED TO Done AFTER -4w) AND parent IS NOT EMPTY ORDER BY parent
{{#lookupIssues}}
EPIC: <a href="{{parent.url}}">{{parent.summary}}</a>
- <a href="{{url}}">{{key}}- {{summary}}</a>
{{/lookupIssues}}
You can customize your email message as you wish
EDIT: I've added links to the message output :)
Hey @Laura Lopez,
thank you very much, that works fine!
But now I need one small adjustment: There might be subtasks as well which have been created or moved to "done" within the last 4 weeks. If I simply include them in the JQL statement, the issue type "task" is displayed in the output e-mail as well, because the tasks are parents of the subtasks.
Do you know how to exclude the issue type "Task" from the "Epic-List" but still track the changes in subtasks?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Maurice B.
See if this helps you:
Go to Jira Automation
Create a New Rule
Set the Trigger
Choose "Scheduled" trigger.
Set it to run every Thursday.
Select "Run JQL" and use the following query:
project = "YOUR_PROJECT" AND issuetype = Epic AND (
issueFunction in hasSubtasks() AND issueFunction in linkedIssuesOf("status = Done", "is parent of")
OR updated >= -4w
)
Explanation:
Add Action: Send Email
Select "Send Email".
Configure the recipients (e.g., your team).
Use the following template for the email body:
Subject: Epic Updates - Week of {{now.format("MM/dd/yyyy")}}
Hello Team,
The following Epics have recent updates:
{{#lookupIssues}}
- **{{key}}**: {{summary}}
{{/lookupIssues}}
Best regards,
Team XXX
Save and Test
Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Layssa Souza ,
thank you for your support. Nice try, but I have already asked chatGPT as well and the proposed solution doesn't work. ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Maurice B. , Do you have any plug-ins, such as script runner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ask because I had carried out the test in my environment, despite it being a DataCenter environment, the behavior should be the same.
Unfortunately, the only thing that I cannot validate is the return of the email, due to a restriction on the hosted server.
If an error is being presented, you can share it for evaluation :)
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
No, I do not use any plug-ins, thus it does not work for me. But thank you. :)
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.