Limitation in retrieving select list field type values from Jira Service Management Forms via Automation

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.


Deprecation Notice!!!

Removing access to Forms data using Jira entity properties API

To access forms properties after the deprecation, it will be necessary to use the new feature for Forms smart-values:

Alternatively, you can access these properties via the Jira Forms REST API.

Summary

Currently, there is a design limitation in referencing ProForma/JSM Form form fields, specifically fields of select-list or choice field type. Retrieving the text of the selected choice value is challenging for Automation for Jira (A4J) to accomplish. According to the current design, when handling/recording values chosen in choice lists (dropdowns, checkboxes, etc.), ProForma stores the ID of the choice list field in JSON and returns the associated value when displaying the form. As a result, accessing Choice list values does not work for smart values referencing. This limitation is known between Forms and Automation.


From  - Reading a Forms(ProForma) field value without the JSON tab:

Choice Fields: issue.properties."proforma.forms.i1".state.answers.AAA.choices.get(0)

Note this will only return the ID associated with the choice rather than the text.


For more information on the new availabilities of Jira Forms for Jria and Jira Service Management products, we will be updating our users via email and also our roadmap here: Atlassian cloud roadmap

Solution / Workaround

As of 30 October 2023, we are excited to announce that we have released the capability to obtain form attachments through our Forms API and the Jira Service Management Public API. You can find all the details about these updates in the changelog entries Get metadata on all form attachments and Supporting form attachments when get attachments.

Furthermore, we now support the saving of form answers and the retrieval of external form data. The changelog entry is here.




Last modified on Nov 19, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.