You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
- When custom field in epic is selected as "yes", I would like for it to auto-create a child issue titled "xyz". I am seeing that this is is possible for sub tasks but I need this to be a task level due to the hierarchy in the future advanced road map
- There will be multiple child issue / custom field connections but I believe the same if/then/action can be duplicated once I get the shell down.
- Please see attached image with how far I have gotten
Hello @Breanna Williams
Is this for issues in a Company Managed project or a Team Managed project?
With the way you have the rule set up it is triggered when a new issue is created, and then the For Epic branch is looking for the parent Epic of the rule just created.
I don't think that is the scenario you described.
It sounds like maybe it is the Epic itself that is being created and should be triggering the rule. Is that correct?
If so, then in that case you would want to remove that For Epic branch and instead
1. Have a condition to check if the newly created issue is an Epic
2. Have a Condition > If/Else Block to check if the custom field is set to the value that indicates a child issue should be created, and create the issue under that If block
3. Follow with Else-if blocks for checking the other fields and creating other issues, if the checks are mutually exclusive.
For a Company Managed project as part of creating the Task you would set the Epic Link field to {{triggerIssue.key}} to link the new issue as a child issue of the Epic where the field was changed.
Hi Trudy,
Apologies, I am new to Jira and should've mentioned this is for a Company-managed project.
Thank you for helping me with this breakdown -- you are correct. I would want the creation of the Epic to trigger this rule.
Rule should be:
- If "Yes, need to order" in custom field "Is product needed?" is selected, THEN a child issue should be created titled "Order Product For"
I am a bit confused on where the action is with creating the actual child issue? Could you explain more?
For additional context, the other custom fields I plan to use do not block one another. It is mainly to create a "to do list" based on the criteria added in the Epic. Let me know if that makes sense? @Trudy Claspill
Appreciate your help thus far!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First we need to clarify what logic is needed.
Let’s say your Epics have Field1, Field2, and Field3.
Is the logic…?
If Field1= X create an issue AND
If Field2 = Y create another issue AND
If Field3=Z create a third issue
Or is the logic…?
If Field1=X create an issue and then I’m done.
If Field1 <> X then check Field2. If Field2 =Y then create an issue and I’m done.
If Field1 <> X and Field2 <> Y then check Field3. If Field3 = Z then create an issue and I’m done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
The logic is:
If Field1= X create an issue AND
If Field2 = Y create another issue AND
If Field3=Z create a third issue
Also, to update -- the "task" is being created once I create the epic with that rule. But they are not linking. What am I doing incorrectly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before we get to the "why isn't it linking" we need to finish the discussion on the logic.
The problem with this logic:
If Field1= X create an issue AND
If Field2 = Y create another issue AND
If Field3=Z create a third issue
...is that the first condition that is not met will cause the rule execution to terminate without checking any of the remaining conditions. If Field2 doesn't equal Y, the rule will stop and Field3 will never be checked.
How many of these fields do you need to check?
Are any of the fields Selection List (select single item) where you will need to create different issues depending on the option selected in the list?
Are any of the fields Selection Lists (select multiple items) where you have to create different issues for each of the multiple items that might be selected?
Depending on the answers to those, you may need to create multiple rules to handle the checking of each field, or a small combinations of fields, separately.
---
As to why the created issue is not linking to the Epic, please show me the details of the Audit Log for the execution of the rule where it failed to link the created issue to the Epic.
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.