Hello Team,
I’m new to JIRA Cloud and trying to develop a small app using Forge. My requirement is to update a Text Customfield value with the current Issue Description. Can someone help with the code
Also. I see that when using rest/api/3/ description field is comming as array when compared to rest/api/2/. May i know what is the correct way of getting the value of description field using rest api
{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10000","self":"https://XXXX.atlassian.net/rest/api/3/issue/10000","key":"TES-1","fields":{"description":{"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"testLin1"}]},{"type":"paragraph","content":[{"type":"text","text":"test Lone2"}]},{"type":"paragraph","content":[{"type":"text","text":"TestLine3"}]}]}}}
if i use rest/api/2 then
{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10000","self":"https://XXXX.atlassian.net/rest/api/2/issue/10000","key":"TES-1","fields":{"description":"testLin1\n\ntest Lone2\n\nTestLine3"}}```