jira cloud api save value for multi line text field

hadesunseenn September 3, 2021

working with jira cloud api v3. When creating an issue I am able to save data for single line text field but not able to save data for multi line text field.  Here is how the data looks for single line. Its just key and value, it does not work for multi line though


"customfield_10014": "IN-14"


can you please let me know which params we need to save data for multi line !

api gives this error

"customfield_10029":"Operation value must be an Atlassian Document (see the Atlassian Document Format)"}

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
September 3, 2021

Hi @hadesunseenn 

You may want to look at this defect for a work-around using the REST API v2:

https://jira.atlassian.com/browse/JRACLOUD-71841

Kind regards,
Bill

hadesunseenn September 3, 2021

thanks @Bill Sheboy for quick response

I have already implemented a lot of apis using v3. Dont want to redo all just for one field. 

Can you please tell me how do i need to format the request ?

Bill Sheboy
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.
September 3, 2021

Please see this post for two different examples of how to do this: either escaping the newline character or using the ADF paragraph node syntax.

https://community.atlassian.com/t5/Jira-questions/Submit-request-in-JIRA-API-with-multiline-value/qaq-p/1690740

hadesunseenn September 3, 2021

moved to v2 and it works thanks, will try v3 on moday

Suggest an answer

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

Atlassian Community Events