Forums

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

jira cloud api save value for multi line text field

hadesunseenn September 3, 2021 edited

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 edited

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 edited

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
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events