Hi everyone, I want to share form as a payload using Send Web Request (Automation)
Asked by MQZ-M. Iqbal Rizaldi:

Hi everyone, I want to share FORM as a payload using Send Web Request (Automation), is there any advice?  

I guess I can use Custom Data, but i don't know how

![Keycloak Test.png](/t5/image/serverpage/image-id/302678iEADF3AAF7E9ECF1C/image-size/large?v=v2&px=999 "Keycloak Test.png")

This is the FORM I was mentioned before

![FORM keycloak.png](/t5/image/serverpage/image-id/302680i4A77C9F8CB45CBAD/image-dimensions/402x410?v=v2 "FORM keycloak.png")


Answers:
author: Rudy Holtkamp
body: Hi [@MQZ-M. Iqbal Rizaldi](/t5/user/viewprofilepage/user-id/5415067) ,

When you want to share data which is captured in a form, you can do that in three ways: the easy, the middle and the hard way.

**The easy way**

1. Create for each form field a separate custom field
2. Go to your form and link each form field to the created custom field (under Linked Jira Field, see image)![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/302687i91DE52D9984EAD31/image-dimensions/248x404?v=v2 "image.png")
3. Use {{issue.fields.\<custom field name\>}} in your web request payload

**The middle way**

1. Use a rest call to retrieve the data see [this page.](https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-customer-request/#api-request-issueidorkey-form-formid-format-answers-get)

**The hard way**

1. When you have created an issue with a form, go to https://\<company\>.atlassian.net/rest/api/2/issue/\<issue.key\>/properties/proforma.forms.i1
2. Here is the content of the form stored. You can get the data from here, which is very hard to do. See also [this article.](https://community.atlassian.com/t5/Jira-Service-Management/How-to-access-the-form-data-in-Jira-Automations/qaq-p/2050277)

comments: author: MQZ-M. Iqbal Rizaldi
body: oh by the way, om my computer I use {{issue.\<custom field name\>}} instead of {{issue.field.\<custom field name\>}}   

I have tried your suggestion but doesn't work in my computer. Nevertheless thank you so much


author: Rudy Holtkamp
body: Sorry, made a typo, should be 'fields' instead of 'field'.

But without it also works (most of the time).


author: MQZ-M. Iqbal Rizaldi
body: [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802) I got new problem right now, how if I want to share more than 1 form as a payload (array of object)?  

I've tried with 1 FORM and it works. But now I want to send array of object (it gets data from multiple form, see pictured below)

![Array of object.png](https://community.atlassian.com/t5/image/serverpage/image-id/302923iD90BA9327549B666/image-dimensions/422x353?v=v2 "Array of object.png")


author: Rudy Holtkamp
body: If you add the same type of form twice, the 'easy way' will not work, because the data in the Jira fields will be overwritten when you attach the second form.

So you need to one of the other ways.


author: MQZ-M. Iqbal Rizaldi
body: Ah I see [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802) , thank you. I'll try other ways then.


author: MQZ-M. Iqbal Rizaldi
body: Hi [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802) Its work!!

Thank you so much, Jira community is awesome!

comments: author: Rudy Holtkamp
body: ?Great to hear that it works!


Tags: cloud

jira-service-management

jira-service-management-cloud