Work has already started on the new Forms API functionality and we now have some experimental APIs available for use. So now Marketplace Partners can already integrate forms into their products.
For more information, please refer to the features below:
As an extra option of workaround to the feature request "Form Fields: Add additional forms based on previous fields filling", this article is meant to help users who want to use the new experimental features of the Forms API to automatically add a form in a ticket.
To add a form when an issue is transitioning to Escalated status:
- The web method will be a POST:
POST /jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form
- The cloudId will be your Cloud ID and not your Org ID. The easy way to get the cloud id is to go to https://<instance>.atlassian.net/admin/jira-service-desk/portal-only-customers. You will get the Cloud id in the URL (e.g.: https://admin.atlassian.com/s/<cloud_id>/jira-service-desk/portal-only-customers)
- The issue ID or issue Key that you are using. To add the issueId or issueKey dynamically, you can use the smart value {{issue.id}} or {{issue.key}}
https://<address>/gateway/api/proforma/cloudid/<cloudid>/api/2/projects/<project-key>/forms/<form-id>
Note: To call experimental methods the "
X-ExperimentalApi" and "opt-in"
header must be provided on the web request headers.
This workaround will work as shown in the screen recording below:
Bruno Altenhofen
Atlassian Engineer - The guy from Proforma(Jira Forms)
e-Core
Krakow - Poland
1 accepted answer
0 comments