Forums

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

api related to update the page

DISHA SATANI
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!
July 22, 2025

Hi team 

when i use 

{
  "id": "1760042269",
  "type": "page",
  "title": "new page",
  "space": {
    "key": "BIIAC"
  },
  "body": {
    "storage": {
      "value": "<table><thead><tr><th>SR no.</th><th>Email ID</th><th>CC Number</th></tr></thead><tbody><tr><td>1.</td><td>dishasatani@gmail.com</td><td>6301008</td></tr><tr><td>2.</td><td><br /></td><td><br /></td></tr><tr><td>3.</td><td><br /></td><td><br /></td></tr><tr><td>4.</td><td><br /></td><td><br /></td></tr><tr><td>5.</td><td><br /></td><td><br /></td></tr></tbody></table>",
      "representation": "storage"
    }
  },
  "version": {
    "number": 20
  }

this format in KORE.AI(which is chatbot development) it works fine but if i use 

{
  "id": "1760042269",
  "type": "page",
  "title": "new page",
  "space": { "key": "BIIAC" },
  "body": {
    "storage": {
      "value": "{{context.session.BotUserSession.contentBody}}",
      "representation": "storage"
    }
  },
  "version": { 
  "number": "30" 
  }
}

 this and pass the value of the context.session.BotUserSession.contentBody as same as above it doesnt work the html tags are getting changed how to resolve it

1 answer

0 votes
Oleksii Melnyk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2025

Hi @DISHA SATANI 

Try to add {{context.session.BotUserSession.contentBody.asJsonString}}

asJsonString - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-json-functions/


There may also be a problem with encoding. Are you sure you don't use unnecessary special characters?

You may need to escape the content of your smart value.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events