Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Web response not in json

Saurabh Jain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2024

Hi, I am trying to fetch the information populated in a form through workflow automation by send web request option.

following this URL that I am using :

https://api.atlassian.com/jira/forms/cloud/XXXXX/issue/{{issue.key}}/form/{{webResponse.body.id}}/format/answers

the response is not formatted and leads to failure. I am seeing all string quotations are missing. I have checked content-type has been set to "application/json" in the header. 

to be sure of it, I stored the response as a variable and store that variable as a comment and still all string quotations are missing.

{label=Agency Roles, fieldKey=AgencyRole_1, answer=Role 1, choice=1}, 

{label=Agency Roles, fieldKey=AgencyRole_1, answer=Role 1, choice=1}

while the same i.e string quotations is present when fetching the same form through standalone python program

[  {    "label": "Agency Roles",    "fieldKey": "AgencyRole_1",    "answer": "Role 1",    "choice": "1"  },  {    "label": "Agency Roles",    "fieldKey": "AgencyRole_2",    "answer": "Role 2",    "choice": "2"  }]

I have to transfer complete output of the form to another system for further processing.

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
SilkeS
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
November 12, 2025

This topic is now closed as the discussion has become outdated. If you have more questions or want to continue the conversation, feel free to start a new topic. For more details on why we close older threads, check out our  Rules of engagement - Atlassian Community .

Thank you for your understanding!

0 votes
Julian Becher November 12, 2025

I got the same problem.

According to this documentation, the response should be JSON, but it isn't:

Access forms data with the Forms API in Jira Cloud 

But there is also another method presented which searches for the label name. works for me:

{{#webResponse.body}}  {{#if(equals(label,"Field Name"))}}{{answer}}{{/}}{{/webResponse.body}}

 

 

0 votes
Bruno Weinek February 13, 2025

I got the same problem.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events