Problem: I've tried several different variations and cannot get the Parent Summary to show up. I can get list of issues to appear but not the associated Parents.
What I'm doing: I've created an automation using MS Teams incoming webhook where I post a message in a designated Teams channel when a Sprint starts in Jira.
The only problem I'm having is trying to get this list of Epics (Parents) Summary to show up in the post.
As you can see I've tried:
{{#issue.epic}}
* {{issue.parent.summary}}
{{/}}
I've also tried just {{issue.parent}} instead of epic as well as other iterations but cannot seem to get it to show up. Not sure if it's even possible.
Forgive me, I'm relatively new to this whole automation setup.
Hi @Andy Tran
You state you are trying to list the parent's summaries (that is, the associated epics for any issues in the sprint which started).
My assumption is only the child issues, and not the Epics, are assigned to the Sprint.
Your rule has a few challenges, and so my suggestions would be:
One would think that this would work with the first lookup to get the summaries:
{{lookupIssues.parent.summary.distinct}}
However it appears (surprisingly) that when an issue does not have a parent epic, the "parent" smart value returns the original issue instead of null!
Kind regards,
Bill
Hi @Bill Sheboy ,
Thanks for this! It helped a lot however, looks like it was returning the summaries of the issuetype = Saga, which is the parent of the Epics rather than Epics. I just removed the parent from {{lookupIssues.parent.summary.distinct}} and it works just great.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy would you know how to get the return values into a bullet list? I've been trying everything and cannot figure out how to use smart values to get each summary into a bullet list.
{{lookupIssues.summary.distinct}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the markup used to make a bullet item for the Teams message?
Let's assume it is an asterisk * for now, and so the bullet list would be this:
{{#lookupIssues.summary.distinct}}
* {{.}}
{{/}}
How this works:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn that helped!
And...please take a look at the combined-examples for list functions. They show some features for list handling not noted anywhere else in the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andy Tran
Can you try using only {{sourceIssue.summary}} in this case source issue is the parent. Hope this helps.
Thanks
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.