Hi! I want to create an automation that fills in the Parent Epic Name field if it is missing, by connecting it to the Epic the issue was created under.
For example, if a feature is created under my "Deals" Epic, but the Parent Epic Name wasn't filled out, the automation would automatically fill the Parent Epic Name field out with "Deals" (i.e. the Epic name)
I've drafted this automation but this is not doing what I want. The JQL is finding features/capabilities with missing Parent Link instead of missing Parent Epic Name field.
Anyone know how to adjust the JQL for this? Thanks in advance!
Hello @Rachel Stein
Can you explain the issue type hierarchy for your system?
Are Feature and Capability issue types that you can create as child issues under an Epic directly?
As @Mikael Sandberg showed, if you have the Parent field in your issues then that field will show the key and summary for an issues parent issue You don't need to copy the information to a separate field in the child.
But, if you insist on doing that, and if Feature and Capability are issue types that can be set as children of Epics then I think the query you want is:
issuetype in (Feature, Capability) and Parent is not empty and "Parent Epic Name" is empty
That will get you all Feature and Capability issues that are the child of another issue and that have no value in their "Parent Epic Name" field.
To set that field to the Summary from the issues Parent you would use this smart value as the value for the field:
{{issue.parent.summary}}
However, I think your rule still might not work as you expect it to.
Are your running a JQL statement in your Schedule trigger? I ask with a scheduled rule that runs a JQL in the trigger you will execute the "For: JQL" branch for each issue found in the trigger's JQL statement.
Thanks - appreciate the JQL. This did not work as you expected - it assigned the Parent Epic Name to the Parent, which in this meant all my features got the Capability's name instead of the Epic's name.
I am not running a JQL in the scheduled trigger; I just have it set to run every morning and check through any issues that were added to Jira the day before and make the corrections on issues that satisfy the JQL query.
Any more suggestions for working around this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you explain the issue type hierarchy for your system?
Are Feature and Capability issue types that you can create as child issues under an Epic directly?
For which issue types are you trying to fill in Parent Epic Name?
Are those issue types direct children of Epics?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hierarchy is as follows: Epic -> Capability -> Feature. I am interested in filling out the Parent Epic Name field of features with the Epic name.
For example, for a feature called "Project XYZ" which is nested under the Epic called "Deals", I want the Parent Epic Name field for that feature to list "Deals".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the Parent field in the Feature filled with the issue key of the Capability issue? Or are the feature and Capability connected using generic issue linking?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The parent field in the feature is filled out with the issue key of the Capability issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great! That makes this easier.
The JQL to use would be:
issuetype in (Feature) and Parent is not empty and "Parent Epic Name" is empty
That will get the Features that do have a parent Capability and don't have a value in their Parent Epic Name field.
To set the Parent Epic Name field in the Feature to it's "grandparent" Epic's Summary you would would use this smart value as the value for the field:
{{issue.parent.parent.summary}}
Get the summary from the parent (Epic) of the parent (Capability) of the issue (Feature).
Before the edit action you might want to add a condition to confirm that the Capability is actually the child of an issue (Epic)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, that worked!! Thank you so much for your help, this was a great learning experience for me!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you are looking to do in JQL is not possible in the out-of-the-box version. You are looking to do a nested query and that can only be done if you have an app from the Marketplace that extends JQL to allow queries like that.
But why do you need to set the Parent Epic Name field when the parent name will show up in the Parent field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. The reason I want Parent Epic Name to be filled out with the Epic is because for my Power BI connection, I do aggregations of information at the feature level but show it at the Epic level. Therefore, I need every feature to have the corresponding Parent Epic Name filled out so it flows through correctly to my Power BI.
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.