Forums

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

How to copy description field via REST API

Randy
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.
July 26, 2019

Hi,

I'm trying to clone an issue via scriptrunner for cloud.  Since my description is styled with bullets and headings, i can't figure out how to read it from an existing issue and set it on a newly created issue since the new issue takes a string as input but the issue i'm reading from returns description as an object.

Does anyone know how i could do this?  Ideally i'd like to avoid having to write a description to string serializer.

 

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Randy
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.
July 26, 2019

Figured it out.  Version 2 of the api still returns description as wiki markup.  Version 3 returns as an object.

Suggest an answer

Log in or Sign up to answer