If you try using the Restricting Available Issue Types behaviour and switch projects to a project which does not have the behaviour configuration, the Behaviour still works.
Note: This only occurs when creating an issue using the CreateIssue page and not in the Create Issue popup.
- Please create a new Behaviour and Map a project to it.
- Use the Behaviour Initialiser and paste the code below:-
- Make sure that you have the Administrators and Developers role configured. Else, use alternative roles and modify the code accordingly.
- Go to the project that is mapped to the behaviour and add users to that role accordingly.
- Login to Jira as a user who is in the Developer group.
- Use the CreateIssue page e.g.http://localhost:9092/secure/CreateIssue!default.jspa to create an issue as shown in the image below:-
- If the project currently selected on the page does not have the behaviour configuration, it will show all the issue types.
- Next, change to a project which has the behaviour configuration and select the issue type. As expected, the issue type will be filtered according to the Behaviour.
- Now switch back again to a project that doesn't use the Behaviour and select the issue type.
When switching between projects that have and do not have the Issue Type Restriction behaviour configuration, the issue type options do not change. It still appears to displays the same restricted issue type list.
When the Project is changed and if the project does not have the Issue Type Restriction behaviour, it is expected that all the issue types from the project should be visible.
For the moment, use the Create issue pop-up to create a new issue and not CreateIssue!default.jspa page. When using the pop-up, if the project is changed, the cache is cleared.
Attached is a test video test1.mp4