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

Hi everyone, I want to share form as a payload using Send Web Request (Automation)

MQZ-M. Iqbal Rizaldi January 26, 2024

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

 

This is the FORM I was mentioned before

FORM keycloak.png

2 answers

1 accepted

2 votes
Answer accepted
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2024

Hi @MQZ-M. Iqbal Rizaldi ,

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
  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.

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.
MQZ-M. Iqbal Rizaldi January 26, 2024

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

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2024

Sorry, made a typo, should be 'fields' instead of 'field'.

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

MQZ-M. Iqbal Rizaldi January 29, 2024

@Rudy Holtkamp 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

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 29, 2024

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. 

MQZ-M. Iqbal Rizaldi January 29, 2024

Ah I see @Rudy Holtkamp , thank you. I'll try other ways then.

0 votes
MQZ-M. Iqbal Rizaldi January 26, 2024

Hi @Rudy Holtkamp Its work!!

Thank you so much, Jira community is awesome!

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2024

👍Great to hear that it works!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events