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.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events