The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Need the code for scriptrunner behvaiour to create panel in description field

Samyak Masulkar
November 16, 2023

We need to pre-populate the colored panels, checkboxes, and tables in description field on jira issue using scriptrunner behaviour, I was able to achieve this using HTML code in data center but not familiar with language used in scriptrunner cloud. Can someone please help me with the code. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kristian Walker _Adaptavist_
Community Champion
November 16, 2023

Hi Samayak,

Thank you for your question.

I can confirm that to add a pre-populated description with behaviours, you can use the example we have in the Script Libray here.

You will then need to change the Atlassian document format for the format you want, and the easiest way to get this is to use the visual editor tool Atlassian provide to generate this here.

You can then paste this into the example, replacing the document format inside the setValue() method.

I hope this helps.

Regards,

Kristian

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events