Important Notice: This documentation is no longer functional due to the deprecation of Forms Properties. For more information, please see the Atlassian Changelog.
To access forms properties after this deprecation, please use the new Forms Smart-Values feature:
📘 For more detailed information on using Forms Smart Values, refer to the article below:
Alternatively, you can access these properties via the Jira Forms REST API. Here is a general guide to help you access these properties:
https://api.atlassian.com/jira/forms/cloud/{cloudId}/project/{projectIdOrKey}/form
This will return all forms for your project, allowing you to identify each formTemplate ID.https://api.atlassian.com/jira/forms/cloud/{cloudId}/project/{projectIdOrKey}/form/{formTemplateId}
https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form
This will return all forms from an issue, enabling you to find each form ID.https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}
🔍 This section is for historical reference only. It describes deprecated methods used by ThinkTilt (Proforma) and is no longer applicable to Jira Forms.
As features evolve, support for Automation for Jira to access form contents via SmartValues will improve. You can use the Entity Property Tool for Jira to inspect form data. This tool facilitates automation building, though it is not officially supported. Please use it with caution to avoid disrupting form functionality.
Note: This tool is not officially supported, so please be careful when working with these properties, as improper modifications can break a form.
If you prefer not to use the Entity Property Tool and instead use the Proforma API, access the structure using the link below:
https://.atlassian.net/rest/api/2/issue//properties/proforma.forms.i1
💡 Tip: The "i1" signifies the form's order on the ticket. For the second form, use "i2", and so on.
📚 Important related documentation:
Development on new Forms API functionality is underway, with experimental APIs available. Marketplace Partners can integrate forms into their products.
For more information, please refer to the features below:
ℹ️ Note: Forms API documentation is available here. We are continuing to enhance this functionality, which is why this issue remains In Progress.
With the Entity Property Tool for Jira installed, add the desired form to a ticket and navigate to the Entity properties tab, as shown in the screenshot below:
The structure to access data is as follows, where AAA is the question ID number (not the Question Key):
- Text/Email/URL/Number Fields: {{issue.properties."proforma.forms.i1".state.answers.AAA.text}}
- Date Fields: {{issue.properties."proforma.forms.i1".state.answers.AAA.date}}
- Time Fields: {{issue.properties."proforma.forms.i1".state.answers.AAA.time}}
- ID of a user: {{issue.properties."proforma.forms.i1".state.answers.AAA.users.get(0).id}}
- Choice Fields: {{issue.properties."proforma.forms.i1".state.answers.AAA.choices.get(0)}}
- Note: This will only return the choice ID, not the text. Retrieving the text is complex for Automation for Jira.
Regarding the limitation with Choice Fields, we have an item in our development backlog aimed at improving this:
In the Entity property box, entries like "proforma.forms.i1", "proforma.forms.i2" indicate the form's order:
Using a code editor like Sublime, you can paste form properties and find desired fields and IDs, as shown in this screen recording:
Bruno Altenhofen
Atlassian Engineer - The guy from Proforma(Jira Forms)
e-Core
Krakow - Poland
1 accepted answer
23 comments