Forums

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

Getting an error of INVALID_INPUT when Create an issue

Rahul Goyal
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!
June 21, 2023

Hi,

I am getting an error while creating an issue through the api i.e   BaseURl/ex/jira/JIRA_CLOUD_ID/rest/api/3/issue

method - POST

payload -  "summary": "qwerty",

                     "description": {
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "text",
      "text": "test ",
      "marks": [
        {
          "type": "strong"
        }
      ]
    },
    {
      "type": "text",
      "text": "print",
      "marks": [
        {
          "type": "em"
        },
        {
          "type": "strong"
        }
      ]
    },
    {
      "type": "text",
      "text": "  es ",
      "marks": [
        {
          "type": "em"
        },
        {
          "type": "strong"
        },
        {
          "type": "textColor",
          "attrs": {
            "color": "#006644"
          }
        },
        {
          "type": "underline"
        }
      ]
    },
    {
      "type": "text",
      "text": "   ",
      "marks": [
        {
          "type": "em"
        },
        {
          "type": "strong"
        },
        {
          "type": "textColor",
          "attrs": {
            "color": "#006644"
          }
        }
      ]
    },
    {
      "type": "text",
      "text": "Code block ",
      "marks": [
        {
          "type": "code"
        }
      ]
    },
    {
      "type": "text",
      "text": " "
    },
    {
      "type": "text",
      "text": "strike",
      "marks": [
        {
          "type": "strike"
        }
      ]
    },
    {
      "type": "text",
      "text": " "
    }
  ]
}.

 

for this description, it is failing and I tried with other description sometimes it was passed but sometimes it threw an error like INVALID INPUT.

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events