Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,636
Community Members
 
Community Events
185
Community Groups

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
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 23, 2021

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