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

Populating forms fields or text AFTER issue is created, ie Post Review.

Gyrall Ganicz
Contributor
February 14, 2024

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? 

2 answers

0 votes
Gyrall Ganicz
Contributor
February 15, 2024

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. 

0 votes
Gyrall Ganicz
Contributor
February 14, 2024

Suggest an answer

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

Atlassian Community Events