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.
Hi,
I am trying to setup a webhook for Git pipelines and post their status in MTeams chat. My problem happens when I iterate through list of "builds" and try to access parent value.
{{webhookData.project.web_url}} WORKS
{{#webhookData.builds}}
{{webhookData.project.web_url}} DOES NOT WORK
{{/}}
Is it a bug? Or am I doing something wrong?
When you note this "does not work", what are you observing? What is in the audit log for the rule?
And when you iterate over the values in a list that way, you do not repeat the top-level: just the child attributes. For example (and I have not tested this as I do not know the response data structure):
{{#webhookData.builds}}
{{project.web_url}}
{{/}}
You may want to log all of the webhookData to see what the structure actually contains.
Kind regards,
Bill
Hi @Bill Sheboy ,
The structure is definitely correct. I additionally verified it with the "Log" action.
Your example references an element in list iteration, which should be with the full name as:
{{webhookData.builds.project.web_url}}
But I need precisely a property one level upper.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I was describing was when you use a list iterator with smart values, only the child attributes (smart values) are referenced. Please see this documentation for examples with issue fields: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#Combined-function-examples
You note the structure is correct, so if the iterator is not working I suggest working with your site admin to submit a ticket to Atlassian support for assistance. Your team can do that if you are are on a paid license of Jira: https://support.atlassian.com/contact/#/
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.