Hi, Is it possible to populate fields/input data on the form when being attached to the issue?
Example: Post Review Form is attached to an incident that had an impact to business
Upon attaching, It will grab incident ticket data, saving the reviewer having to fill all the data out again.
Key {{issue.key}}
Summary: {{issue.summary}}
This form will never be used before an issue is created and always attached to something already existing.
Hopefully I'm missing something simple and don't need to head down the automation path and start pushing data into the form via REST ie. {issue.properties."proforma.forms.i1".state.answers.x.x.x}}
Has anyone had any experience on this?
This also was a great resource.
https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue
My web request details;
URL
https://api.atlassian.com/jira/forms/cloud/{{cloudid}}/issue/{{issue.key}}/form
Headers
X-ExperimentalApi | opt-in
Authorization | Basic <encoded64 string>
Accept | application/json
Content-Type | application/json
When making changes etc, make sure you are using the form template id and not the id.
{{webResponse.body.formTemplate}}
Post (Attach form example)
Custom Data
{ "formTemplate": { "id": "{{formtemplate}}" } }
Hope this helps others.
Seems this might answer my question, Automatically update Form fields answers and manip... - Atlassian Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.