Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Lists in custom Webhook body

Edited

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!

1 answer

1 accepted

0 votes
Answer accepted

Hi @Fredrik Ivansson Flinta 

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")}}

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you