Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating custom form values in JSM via REST

Iain McCarthy
Contributor
July 8, 2025

 

Hi all. I am looking for some working examples of custom form field updates via REST.

 

I can't use custom Jira fields to map, as my forms use data connections, so must go direct through the forms API.

 

The Atlassian Doc falls JUST short of being useful, here:

https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/\#api-issue-issueidorkey-form-formid-put

This provides the endpoint and request structure but no examples of the field data itself, which is the operative bit. 

--data '{
"answers": {}
}'

This document appears to show the valid structure, but I can't get it to work. If I send this as a payload (the long string is the field's dcId, I've also tried the numeric field number),

{
"answers": {
"68f27692-5a3c-4943-b7d4-b11d80e3f44b": { "choices": ["3441468"] }
}
}

I get the following response: 

 "errors":[{"status":400,"code":"BAD_REQUEST","title":"There was an issue with your request","detail":"1 error found in JSON: (1) should be a JSON object"}]}

Any example of drop-down, text and numeric field updates that you have working on your instances would be super helpful, thank you!

2 answers

1 accepted

3 votes
Answer accepted
John Funk
Community Champion
July 8, 2025

Hi Iain - have you also posted this over in the Developers Community?

https://community.developer.atlassian.com/

Iain McCarthy
Contributor
July 8, 2025

I have not! Was not aware that was a distinct thing, thank you - if this question seems more appropriate for that spot I will ask over there. 

Like John Funk likes this
John Funk
Community Champion
July 8, 2025

I think you will get better answers over there. But leave this one here in case @Darryl Lee wants to chime in. 

0 votes
Darryl Lee
Community Champion
July 8, 2025

Hi @Iain McCarthy - the page you shared (Integrating Custom Form Fields into Jira Ticket Creation API) says:

(Experimental) Provides answers to the form associated with a request type that is attached to the request on creation

(Emphasis mine.)

So I believe that  this is only for populating a form when you are creating a NEW issue. 

You said you're looking to update fields on a form. I take that to mean you're wanting to change values on forms that have already been submitted.

My reading of Forms API is that to update an existing form you would need to:

  • Get the IDs of all forms attached to an ticket: Get form index 
  • Get existing answers for your form (assuming it's just one), using the formId from the step above. I think when you save answers you have to save all of them. So you'll want to get all the values that you'll need to retain or update: Get form simplified answers 
  • You might need to reopen the form: Reopen form 
  • Save the answers: Save form answers
  • Submit the form: Submit form 

I (finally) found some pages with some examples (using web requests in Automation) that might help:

I don't have time right now to test this myself, but those last two articles from @Bruno Altenhofen have a good amount of data. Maybe he can weigh in and see if my suggestions are correct.

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