Forums

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

[ScriptRunner] Behaviours: Problem when user changes prj/issue type to value not covered in mapping

Jacek_Radziemski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2020

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?

0 answers

Suggest an answer

Log in or Sign up to answer