Forums

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

Re: Re: Add text as a table format to Jira comment..

Debayan Chanda
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!
May 21, 2020

Hi @Earl McCutcheon ,

 

On trying the suggested steps I am facing the below error:

Can not deserialize instance of java.lang.String out of START_OBJECT token

Could you please help.

 

Regards,

Debayan

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2020

Hello @Debayan Chanda ,

Sorry for the delayed reply I missed the initial mention, and I am just now seeing this question.

I moved your comment to a new thread from the original post to give it individual attention, The original post for referance:

First question is if you are still running into the error, as its been a while since you were working on this one or were you able to resolve this one?

Next looking a the error you are encountering and giving some context:

Can not deserialize instance of java.lang.String out of START_OBJECT token

This error will generally be triggered due to a formatting error in payload, like an incorrect spelling in a package item i.e. using "field" instead of "fields" or using an incorrect package formatting for the document type like using the old format/server format of "{"lead":{"key":"user_name"}}" where the new formatting would look for "{"lead":"user_name"}"

A really good resource we have put together for troubleshooting the doc format packages can be found at the following links, the first one is a package validator where you can drop the doc formatted JSON to verify the formatting and see what it will look like rendered, the second link is a WYSIWYG editor that lets you build out a formatted text field using the new editor and will output the doc formatting in the correct JSON that can be copied and dropped to the API call as an Example if you were updating the Description field build out the description table in the Builder and add it in like this:

{
"fields": {
"description": {
paste DOC formatted JSON content here
}
}
}

The document builder will help take all the guess work out of the package formatting for things like tables.  But let me know if this helps out or if you are still running into any errors, and if so post the data package and what endpoint your hitting and I can take a closer look.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events