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.