Hi All,
So, I found how to create stories with Jira automation, but I keep getting duplicates. So I have 'Component' field instead of 'Teams.' I have a total of 6 'Components' that can be added to an epic at any time - and it can sometimes just be 1 Component or many. The rule I created keeps returning duplicates. This is my use case:
Anytime the 'Component' field is edited - meaning when a new 'Component' is added at an epic level - create a story for that component and prefix the summary of that story with the team's Component.
Rule:
I created two seperate rules, because I thought it be easier, but no.... So I have a rule for Component = X and Component = Y
Please let me know how can I avoid duplicate stories and have a story created each time a Component is added to the epic - the story must have the Components prefix:
Rule X
You could first check if the issues exist before creating them...
Also, what do you want to happen if a component value is removed?
Kind regards,
Bill
@Bill Sheboy
Is this something close? I am only focusing in the creation of the stories, if a component gets taken out the epic - that will be something I will tackle later, but first, I added the check of duplicates before the action of creating stories, but that is not yielding any stories now, any advise from here on out?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To clarify a bit, what does "duplicate" mean for the scenario:
If it is the Summary check, perhaps try this:
The branches help isolate the logic for each block.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried some variation of what you have proposed and its working a bit better, no longer getting duplicates. But I still have an issue. Please see the following scenarios below. Thank you in advance for your time.
1. Component X is entered in Epic = Passes - story gets created correctly
2. Component X and Y entered in Epic = Passes - both stories get created correctly
3. Component Y is entered in Epic = Passes - story gets created correctly
4. Component Y is entered first then component X in Epic = Fail, two stories for Y are created upon entering each component and X does not get created.
How can I have it in where it does not matter which 'Component' is entered first - story gets created for each component regardless of sequence entered?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please note in you rule you are using two different conditions:
I believe you want to use the contains condition for all of your tests; otherwise it will only look for an exact match to the values noted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Thank you for catching that, yes now I can enter them in any order now, but I have another issue... which ever 'Component' I enter last it automatically creates two stories for component = X and component = Y
So, its now happening like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, using either a related issues condition with JQL to check before creating the issue in the branch...or, using a Lookup Issues with JQL and then checking no issues were returned.
I recommend trying the related issues condition first; you will need one before each issue create action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much for all your help. It has taught me so much. I was able to create stories for each component - like 10 different ones flawlessly and when component gets deleted from epic screen it does not add another component - since my trigger kicks off when issue is getting edited. Hope this helps anyone else:
What fixed the duplication of issues getting created. Added this before creating the issue:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well done!
I recommend periodically checking for feature changes to automation rules. If / when the advanced branching on smart values is added for Jira Data Center, all of your cases can be collapsed into a single loop. Here is the backlog suggestion if you want to watch / vote for it to see progress: https://jira.atlassian.com/browse/JIRAAUTOSERVER-749
After that becomes available, your rule could change to this:
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.