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 need some help to get lists (multi-select, checkboxes etc) in my custom webhook body using Automation For Jira using smartvalues.
I can get the values using smart values: {{issue.customfield_00000.value}}
Now I would like to use those values to format a body where I shall POST the data to another Jira instance.
Like:
{
"fields": {
"customfield_11111": "{{issue.customfield_00000.value}}"..............
Hope my question is pretty clear at least ;)
Thanks in advance!
I recommend reviewing this documentation page and its examples for how to format the JSON for the different Jira field types: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
To confirm your source and target data, also consider looking over this how-to article which describes finding your smart values and their structure in the JSON: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Thanks @Bill Sheboy
Managed to solve it by:
"customfield_TARGETID": {{issue.customfield_FROMID.asJsonObjectArray("value")}}
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.