Auto populate description based on issue type.
Asked by C S Seshagiri:

Hi Team,  

We are using the below script to auto populate the description where it is working for Jira software project and not working for JSM projects.

Kindly Assist.

Thanks.

{  
"version": 1,  
"type": "doc",  
"content": \[  
{  
"type": "table",  
"attrs": {  
"isNumberColumnEnabled": false,  
"layout": "default",  
"localId": "b857786b-f127-4e4f-b056-ecd60474fa1f"  
},  
"content": \[  
{  
"type": "tableRow",  
"content": \[  
{  
"type": "tableHeader",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "Script Link",  
"marks": \[  
{  
"type": "strong"  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableCell",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableRow",  
"content": \[  
{  
"type": "tableHeader",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "Voiceover Link",  
"marks": \[  
{  
"type": "strong"  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableCell",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableRow",  
"content": \[  
{  
"type": "tableHeader",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "Voiceover Type",  
"marks": \[  
{  
"type": "strong"  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableCell",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "NEWPARTIAL REUSE FROM EXISTINGFULL REUSE FROM EXISTING"  
}  
\]  
},  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "\[CHOOSE ONE AND DELETE OTHERS\]",  
"marks": \[  
{  
"type": "em"  
}  
\]  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableRow",  
"content": \[  
{  
"type": "tableHeader",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "Screencap Folder Link",  
"marks": \[  
{  
"type": "strong"  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "tableCell",  
"attrs": {},  
"content": \[  
{  
"type": "paragraph",  
"content": \[  
{  
"type": "text",  
"text": "<https://drive.google.com/drive/folders/1u-pQEVFpFoDJIDar55VA71DV-353nSp3>",  
"marks": \[  
{  
"type": "link",  
"attrs": {  
"href": "<https://drive.google.com/drive/folders/1u-pQEVFpFoDJIDar55VA71DV-353nSp3>"  
}  
}  
\]  
}  
\]  
}  
\]  
}  
\]  
}  
\]  
},  
{  
"type": "paragraph",  
"content": \[\]  
},  
{  
"type": "paragraph",  
"content": \[\]  
}  
\]  
}


Answers:
author: Kristian Walker _Adaptavist_
body: Hi C S Seshagiri,

I can confirm if you are using Behaviorus provided by ScriptRunner for Jira Cloud then this currently does not support JSM Projects.

This is why it works for Software projects and not JSM projects.

For JSM support, we have a feature request [here](https://scriptrunner-for-jira-cloud.nolt.io/101), and I would ask you to add your use case to it so that Atlassian can see this and add support for JSM to the UI Modifications API, which Behaviours uses.

I hope this helps,

Regards,

Kristian


author: Nikola Perisic
body: Welcome to the community [@C S Seshagiri](/t5/user/viewprofilepage/user-id/5426245)

I'd suggest downloading Issue Templates for Jira (not affiliated by them). Once you do this, here are the next steps:

1. Create a new project where you will create your templates - this should be done before installing the app
2. After the install, follow the guide and choose your template project
3. In your template project, choose an issue type then define in your Description field a default text that needs to appear when this issue is being created
4. On the left sidebar of your service desk project click on the "Create from template"
5. Select your project and issue type


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-software

scriptrunner