Hello, I'm using this API to fetch all the Questions and Answers from any form to use inside Jira Automation.
https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/\#api-issue-issueidorkey-form-formid-format-answers-get
I'm printing the questions and answers from the response which looks like this:
[ { "answer": "<string>",
"choice": "<string>",
"fieldKey": "<string>",
"label": "<string>" } ]
When the form has multiple questions and answers, the returned result sort order is a bit perplexing.
I figure it would return the questions and answers based on the sequence of the fields on the forms, but it seems random.
I was thinking maybe I could add a number to fieldKey but Jira Automation doesn't have a list sort function.
Does this mean I likely have to write my own Forge App to do this?