Submit Form via automation

Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2024

I am looking for a way to be able to automatically submit a form based on the transition of a ticket. I would like to avoid the service desk agents having to remember to close out the form. I want to keep the form open for edits while the ticket is in the previous status.

My plan was to utilize automation to do this (screen capture below).

I am using a web request to gather the forms on the request. I then cycle the data from the web request to find the form I'm looking for (based on the status transition). Lastly, I am using a web request to submit the form. I found the api call to make here: https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-customer-request/#api-request-issueidorkey-form-formid-action-submit-put. The URL I am running is: 

https://ncinodev.atlassian.net/request/{{issue.key}}/form/{{form id}}/action/submit

The response I keep getting is:

HTTP Status 409 – Conflict
No other information is provided.
Any ideas what I'm doing wrong?

Screenshot 2024-03-07 103503.png

1 answer

1 accepted

0 votes
Answer accepted
Benavides, Fernando
Contributor
May 1, 2024

Hi @Gary Spross ,

If you haven't been able to solve the problem. Please try adding the additional header for experimental on key add "X-ExperimentalApi" and "opt-in" on the value side. Both without the quotes

Reference. https://community.atlassian.com/t5/Jira-articles/Submitting-or-reopening-a-Form-using-Automation-and-API/ba-p/2367051

Thanks,

Fernando Benavides

Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 1, 2024

Hey @Benavides, Fernando,

Thanks for this response. I had come across this solution and it did work, but I forgot to come back to this post and update it to let anyone else who comes across the same issue know.

Suggest an answer

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

Atlassian Community Events