Im using JIRA Software with version v8.6.0.
I added new configuration to Behaviours for two projects and only one issue type (bug). Behaviour should fill a template in a description field when an user creates a new bug. I followed the example from https://scriptrunner.adaptavist.com/latest/jira/behaviours-use-cases.html.
It does work in a happy path, the description is displayed when user enters the screen.
Proposed configuration has one problem:
Scenario:
1. User enters create issue screen and selects project and issue type that is configured for this behaviour --> A template is shown properly
1a. User changes the project to the value, that is not configured in Behaviour --> the page is reloaded but the template is still displayed. It shouldn't have.
1b. User changes the issue type to the value, that is not configured in Behaviour --> the page is reloaded but the template prepared for the bug is still displayed. It shouldn't have.
This problem makes user delete the template everytime he changes issue type or project. That is not user friendly.
How to fix it to increate usability of this configuration?