Hello!
I'm using Adaptivist's Scriptrunner for Jira Cloud to create a behaviour that will set the Description field to a default template on the create screen when creating specific tickets. The portion that I'm struggling with is how to write info panels into the description template so that they show like this on the create screen:
This is the script template that Adaptivist provides:
Hi @rneill19 ,
this format is called Atlassian Document Format and you can play with document Builder
Just add a panel and it will generate a payload for you
https://developer.atlassian.com/cloud/jira/platform/apis/document/playground/
{
"fields": {
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": []
},
{
"type": "panel",
"attrs": {
"panelType": "info"
},
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "info panel"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "some text in panel"
}
]
}
]
}
]
}
}
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.